|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.d_haven.mpool.PoolAdaptor
public class PoolAdaptor
Created by IntelliJ IDEA. User: bloritsch Date: Jun 18, 2004 Time: 3:22:55 PM To change this template use File | Settings | File Templates.
Constructor Summary | |
---|---|
PoolAdaptor()
|
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 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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PoolAdaptor()
Method Detail |
---|
public void objectCreated(java.lang.Object pooledObject)
objectCreated
in interface PoolListener
pooledObject
- the object createdpublic void objectCreationFailed(java.lang.Exception cause)
objectCreationFailed
in interface PoolListener
cause
- the exception that caused the failurepublic void objectAquired(java.lang.Object pooledObject)
objectAquired
in interface PoolListener
pooledObject
- the object being returned from the callerpublic void objectReleased(java.lang.Object pooledObject)
objectReleased
in interface PoolListener
pooledObject
- the object being returned to the poolpublic void objectDisposed(java.lang.Object pooledObject)
objectDisposed
in interface PoolListener
pooledObject
- the object being disposedpublic void objectDisposalFailed(java.lang.Object pooledObject, java.lang.Exception exception)
objectDisposalFailed
in interface PoolListener
pooledObject
- the object that could not be disposedexception
- the exception generated from the disposalpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |