public class DefaultPoolManager extends java.lang.Object implements PoolManager
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map |
m_factoryMap |
private java.util.List |
m_pools |
| Constructor and Description |
|---|
DefaultPoolManager(org.d_haven.event.command.CommandManager commandManager)
Create the DefaultPoolManager with the supplied command manager.
|
| Modifier and Type | Method and Description |
|---|---|
Pool |
getManagedPool(ObjectFactory factory,
int initialEntries)
Return a managed pool that has a controller.
|
java.lang.String |
toString() |
private final java.util.Map m_factoryMap
private java.util.List m_pools
public DefaultPoolManager(org.d_haven.event.command.CommandManager commandManager)
throws org.d_haven.event.SinkException
commandManager - the CommandManager to use to manage the
poolsorg.d_haven.event.SinkException - if the CommandManager cannot enqueue the
ManagePoolsCommandpublic Pool getManagedPool(ObjectFactory factory, int initialEntries) throws java.lang.Exception
getManagedPool in interface PoolManagerfactory - the factory used for the pool.initialEntries - the number of items to start with in the
pooljava.lang.Exception - if there is a problem creating the poolpublic java.lang.String toString()
toString in class java.lang.Object