| 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
IPoolprotected void deactivateObject(java.lang.Object object)
throws java.lang.Exception
java.lang.Exceptionprotected void destroyObject(java.lang.Object object)
throws java.lang.Exception
java.lang.Exceptionprotected boolean isClosed()
protected void assertOpen()
public java.lang.Object checkout(long timeout)
throws java.lang.Exception
IPoolThis 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.Exceptionprotected java.lang.Object createObject()
throws java.lang.Exception
java.lang.Exceptionpublic void close()
throws java.lang.Exception
IPool