|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PoolListener
The PoolListener interface provides a couple intercept points as well as a way to find out when an object fails to be disposed properly.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |