org.d_haven.mpool

Interface PoolManager

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/06/21 17:03:46 $

Author: Berin Loritsch

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

Method Detail

getManagedPool

public Pool getManagedPool(ObjectFactory factory, int initialEntries)
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: Exception if there is a problem creating the pool