IBM Branch Transformation Toolkit Javadoc

com.ibm.dse.services
Interface Poolable


public interface Poolable

The Poolable interface must be implemented by the objects that use the GenericPool service.


Method Summary
 boolean getInUse()
          Returns the inUse attribute.
 void initialize()
          Performs some required actions before begining.
 void reset()
          Resets the pool.
 void setInUse(boolean b)
          Sets the value of the inUse attribute.
 void terminate()
          Performs some required actions before finishing.
 

Method Detail

getInUse

public boolean getInUse()
Returns the inUse attribute.

Returns:
boolean - Returns true if the object is in use

initialize

public void initialize()
                throws DSEException
Performs some required actions before begining.

Throws:
DSEException

reset

public void reset()
           throws DSEException
Resets the pool. This method is invoked when releasing the Poolable object

Throws:
DSEException

setInUse

public void setInUse(boolean b)
Sets the value of the inUse attribute.

Parameters:
b - The value of the attribute

terminate

public void terminate()
               throws DSEException
Performs some required actions before finishing.

Throws:
DSEException

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005