org.d_haven.mpool
Interface PoolManager

All Known Implementing Classes:
DefaultPoolManager

public interface PoolManager

This interface is for a PoolManager that creates pools that are managed asynchronously. The contract is that the controller type is specified in the constructor.

Version:
CVS $Revision: 1.5 $ $Date: 2004-10-28 15:43:09 +0200 (gio, 28 ott 2004) $
Author:
Berin Loritsch

Method Summary
 Pool getManagedPool(ObjectFactory factory, int initialEntries)
          Return a managed pool that has a controller.
 

Method Detail

getManagedPool

Pool getManagedPool(ObjectFactory factory,
                    int initialEntries)
                    throws java.lang.Exception
Return a managed pool that has a controller.

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:
java.lang.Exception - if there is a problem creating the pool