| com.protomatter.pool.ObjectPoolObject
All known Subclasses: com.protomatter.util.MutexToken, com.protomatter.jdbc.pool.JdbcConnectionPoolConnection,
ObjectPoolObject | public interface ObjectPoolObject (Code) | | An object that's to be used within the context
of an ObjectPool.
See Also: ObjectPool |
Method Summary | |
public void | afterObjectPoolObjectCheckin() This method is called after an object has been checked
back in, but before the isObjectPoolObjectValid()
method is called and before it is made available for
checkout again. | public void | beforeObjectPoolObjectCheckout() This method is called after the object has been removed
from the pool, and before it has been given to whoever
is checking it out of the pool. | public void | deleteObjectPoolObject() Called when this object has expired or
is otherwise not going to be re-used
by the pool. | public boolean | isObjectPoolObjectValid() Determines if this object should be
put back in the pool or not. |
afterObjectPoolObjectCheckin | public void afterObjectPoolObjectCheckin()(Code) | | This method is called after an object has been checked
back in, but before the isObjectPoolObjectValid()
method is called and before it is made available for
checkout again.
|
beforeObjectPoolObjectCheckout | public void beforeObjectPoolObjectCheckout()(Code) | | This method is called after the object has been removed
from the pool, and before it has been given to whoever
is checking it out of the pool.
|
deleteObjectPoolObject | public void deleteObjectPoolObject()(Code) | | Called when this object has expired or
is otherwise not going to be re-used
by the pool.
|
isObjectPoolObjectValid | public boolean isObjectPoolObjectValid()(Code) | | Determines if this object should be
put back in the pool or not.
|
|
|