public interface PoolListener
| 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 disposal failed.
|
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.
|
void objectCreated(java.lang.Object pooledObject)
pooledObject - the object createdvoid objectCreationFailed(java.lang.Exception cause)
cause - the exception that caused the failurevoid objectAquired(java.lang.Object pooledObject)
pooledObject - the object being returned from the callervoid objectReleased(java.lang.Object pooledObject)
pooledObject - the object being returned to the poolvoid objectDisposed(java.lang.Object pooledObject)
pooledObject - the object being disposedvoid objectDisposalFailed(java.lang.Object pooledObject,
java.lang.Exception exception)
pooledObject - the object that could not be disposedexception - the exception generated from the disposal