org.d_haven.mpool
public class DefaultPoolManager extends Object implements PoolManager
Version: CVS $Revision: 1.7 $ $Date: 2004/06/21 17:03:46 $
| Field Summary | |
|---|---|
| Map | m_factoryMap |
| List | m_pools |
| Constructor Summary | |
|---|---|
| DefaultPoolManager(CommandManager commandManager)
Create the DefaultPoolManager with the supplied command manager.
| |
| Method Summary | |
|---|---|
| Pool | getManagedPool(ObjectFactory factory, int initialEntries)
Return a managed pool that has a controller.
|
| String | toString() |
Parameters: commandManager the CommandManager to use to manage the pools
Throws: SinkException if the CommandManager cannot enqueue the ManagePoolsCommand
Parameters: factory the factory used for the pool. initialEntries the number of items to start with in the pool
Returns: the new or existing pool for that factory
Throws: Exception if there is a problem creating the pool