| |
|
| java.lang.Object net.xoetrope.optional.pool.PoolManager
All known Subclasses: net.xoetrope.optional.data.sql.ConnectionManager,
PoolManager | abstract public class PoolManager (Code) | | Manages object pools
Copyright (c) Xoetrope Ltd. 2001-2003
$Revision: 1.1 $
|
Constructor Summary | |
public | PoolManager(int size) Creates a new pool. |
objects | protected Vector objects(Code) | | The object pool data store
|
PoolManager | public PoolManager(int size)(Code) | | Creates a new pool.
Parameters: size - the number of objects for the initial pool size |
closeObjects | public synchronized void closeObjects()(Code) | | Closes and removes all objects in the pool
|
getObject | public PoolObject getObject(String name) throws Exception(Code) | | Get a new object from the pool. A lease is granted to the new object
Parameters: name - the name of the resource, for example the connection name a new PoolObject throws: Exception - |
reapObjects | public synchronized void reapObjects()(Code) | | Removes dead objects from the pool
|
|
|
|