Protomatter Classes v1.1.6

com.protomatter.pool
Interface ObjectPoolObject

All Known Implementing Classes:
JdbcConnectionPoolConnection

public interface ObjectPoolObject

An object that's to be used within the context of an ObjectPool.

See Also:
ObjectPool

Method Summary
 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.
 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.
 void deleteObjectPoolObject()
          Called when this object has expired or is otherwise not going to be re-used by the pool.
 boolean isObjectPoolObjectValid()
          Determines if this object should be put back in the pool or not.
 

Method Detail

deleteObjectPoolObject

public void deleteObjectPoolObject()
Called when this object has expired or is otherwise not going to be re-used by the pool.

isObjectPoolObjectValid

public boolean isObjectPoolObjectValid()
Determines if this object should be put back in the pool or not.

beforeObjectPoolObjectCheckout

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.

afterObjectPoolObjectCheckin

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.

Protomatter Classes v1.1.6
Copyright 1998-2001 Nate Sammons

Protomatter Classes v1.1.6 http://protomatter.sourceforge.net/1.1.6