Constructor and Description |
---|
GenericPool(IPoolObjectFactory objectFactory) |
Modifier and Type | Method and Description |
---|---|
protected void |
activateObject(java.lang.Object object) |
protected void |
assertOpen() |
void |
checkin(java.lang.Object object)
Add an object to the pool.
|
java.lang.Object |
checkout(long timeout)
Get an object from the pool.
|
void |
close()
Close the pool.
|
protected java.lang.Object |
createObject() |
protected void |
deactivateObject(java.lang.Object object) |
void |
destroy(java.lang.Object object)
Destroy an object previously allocated from the pool.
|
protected void |
destroyObject(java.lang.Object object) |
protected boolean |
isClosed() |
public GenericPool(IPoolObjectFactory objectFactory)
public void checkin(java.lang.Object object) throws java.lang.Exception
IPool
protected void deactivateObject(java.lang.Object object) throws java.lang.Exception
java.lang.Exception
protected void destroyObject(java.lang.Object object) throws java.lang.Exception
java.lang.Exception
protected boolean isClosed()
protected void assertOpen()
public java.lang.Object checkout(long timeout) throws java.lang.Exception
IPool
This may be a reused object or a new one, up to the pool strategy and size.
protected void activateObject(java.lang.Object object) throws java.lang.Exception
java.lang.Exception
protected java.lang.Object createObject() throws java.lang.Exception
java.lang.Exception
public void close() throws java.lang.Exception
IPool