org.d_haven.mpool
public interface PoolListener
Method Summary | |
---|---|
void | objectAquired(Object pooledObject)
Notifies the listener when an object is being accessed from the
pool. |
void | objectCreated(Object pooledObject)
Notifies the listener when the pool creates a new object to
introduce into the pool.
|
void | objectCreationFailed(Exception cause)
Notifies the listener when the pool fails to create a new object
when it is asked for.
|
void | objectDisposalFailed(Object pooledObject, Exception exception)
Notifies the listener when an object disposal failed.
|
void | objectDisposed(Object pooledObject)
Notifies the listener when an object is being disposed so that it
will never be reused.
|
void | objectReleased(Object pooledObject)
Notifies the listener when an object is being returned to the
pool. |
Parameters: pooledObject the object being returned from the caller
Parameters: pooledObject the object created
Parameters: cause the exception that caused the failure
Parameters: pooledObject the object that could not be disposed exception the exception generated from the disposal
Parameters: pooledObject the object being disposed
Parameters: pooledObject the object being returned to the pool