public class JMSConnectorManager.ShareableObjectPool extends Object
Modifier and Type | Class and Description |
---|---|
class |
JMSConnectorManager.ShareableObjectPool.ReferenceCountedObject
Wrapper to track the use count of an object
|
Constructor and Description |
---|
JMSConnectorManager.ShareableObjectPool() |
Modifier and Type | Method and Description |
---|---|
void |
addObject(Object obj)
Adds the object to the pool, if not already added
|
Set |
getElements() |
void |
release(Object obj)
Decrements the connector's reference count
|
void |
removeObject(Object obj) |
void |
removeObject(Object obj,
long waitTime)
Removes the object from the pool.
|
void |
reserve(Object obj)
Marks the connector as in use by incrementing the connector's reference count
|
int |
size() |
public JMSConnectorManager.ShareableObjectPool()
public void addObject(Object obj)
public void removeObject(Object obj, long waitTime)
public void removeObject(Object obj)
public void reserve(Object obj) throws Exception
Exception
public void release(Object obj)
public Set getElements()
public int size()
Copyright © The Apache Software Foundation. All Rights Reserved.