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 Details

activateInstance

public 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.

passivateInstance

public void passivateInstance(PooledObject instance)
            throws SQLException
Call the PooledObject.passivate() method and return the object to the pool.
Parameters:
instance - The instance to passivate.

removeInstance

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

Copyright (c) 2003, 2004, 2005 TADA AB - Taby Sweden. \ Distributed under the terms shown in COPYRIGHT