org.postgresql.pljava
Interface ObjectPool


public interface ObjectPool


Method Summary
 PooledObject activateInstance()
          Obtain a pooled object.
 void passivateInstance(PooledObject instance)
          Call the PooledObject.passivate() method and return the object to the pool.
 void removeInstance(PooledObject instance)
          Call the PooledObject.remove() method and evict the object from the pool.
 

Method Detail

activateInstance

PooledObject activateInstance()
                              throws SQLException
Obtain a pooled object. A new instance is created if needed. The pooled object is removed from the pool and activated.

Returns:
A new object or an object found in the pool.
Throws:
SQLException

passivateInstance

void passivateInstance(PooledObject instance)
                       throws SQLException
Call the PooledObject.passivate() method and return the object to the pool.

Parameters:
instance - The instance to passivate.
Throws:
SQLException

removeInstance

void removeInstance(PooledObject instance)
                    throws SQLException
Call the PooledObject.remove() method and evict the object from the pool.

Throws:
SQLException