Method Summary |
|
public void | clear() Removes all CastorDatabase references from
this pool. |
public static CastorDatabasePool | createCastorDatabasePool(int size, CastorDatabase database) Creates a CastorDatabasePool with the given size,
containing the given CastorDatabase instances. |
public int | getCeiling() Returns the ceiling (in terms of size) of this pool. |
protected void | initPool() Initializes a pool of CastorDatabases instances. |
public synchronized CastorDatabase | leaseDatabase() Returns a leased CastorDatabase instance
from this pool. |
public synchronized void | releaseDatabase(CastorDatabase database) Releases a formerly leased CastorDatabase, returning
it into this pool. |
public void | resize(int size) Resizes the pool. |
public int | size() Returns the size of this pool. |