public class PoolAdaptor extends java.lang.Object implements PoolListener
| Constructor and Description |
|---|
PoolAdaptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
objectAquired(java.lang.Object pooledObject)
Notifies the listener when an object is being accessed from the
pool.
|
void |
objectCreated(java.lang.Object pooledObject)
Notifies the listener when the pool creates a new object to
introduce into the pool.
|
void |
objectCreationFailed(java.lang.Exception cause)
Notifies the listener when the pool fails to create a new object
when it is asked for.
|
void |
objectDisposalFailed(java.lang.Object pooledObject,
java.lang.Exception exception)
Notifies the listener when an object could not properly be
disposed.
|
void |
objectDisposed(java.lang.Object pooledObject)
Notifies the listener when an object is being disposed so that it
will never be reused.
|
void |
objectReleased(java.lang.Object pooledObject)
Notifies the listener when an object is being returned to the
pool.
|
java.lang.String |
toString() |
public void objectCreated(java.lang.Object pooledObject)
objectCreated in interface PoolListenerpooledObject - the object createdpublic void objectCreationFailed(java.lang.Exception cause)
objectCreationFailed in interface PoolListenercause - the exception that caused the failurepublic void objectAquired(java.lang.Object pooledObject)
objectAquired in interface PoolListenerpooledObject - the object being returned from the callerpublic void objectReleased(java.lang.Object pooledObject)
objectReleased in interface PoolListenerpooledObject - the object being returned to the poolpublic void objectDisposed(java.lang.Object pooledObject)
objectDisposed in interface PoolListenerpooledObject - the object being disposedpublic void objectDisposalFailed(java.lang.Object pooledObject,
java.lang.Exception exception)
objectDisposalFailed in interface PoolListenerpooledObject - the object that could not be disposedexception - the exception generated from the disposalpublic java.lang.String toString()
toString in class java.lang.Object