org.apache.commons.pool.impl

Class GenericKeyedObjectPoolFactory

Implemented Interfaces:
KeyedObjectPoolFactory

public class GenericKeyedObjectPoolFactory
extends Object
implements KeyedObjectPoolFactory

A factory for creating GenericKeyedObjectPool instances.

Version:
$Revision: 1.7 $ $Date: 2004/02/28 12:16:21 $

Authors:
Rodney Waldhoff
Dirk Verbeeck

See Also:
GenericKeyedObjectPool, KeyedObjectPoolFactory

Constructor Summary

GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory)
GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory, int maxActive)
GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait)
GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait, boolean testOnBorrow, boolean testOnReturn)
GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle)
GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, boolean testOnBorrow, boolean testOnReturn)
GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, boolean testOnBorrow, boolean testOnReturn, long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis, boolean testWhileIdle)
GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, int maxTotal)
GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, int maxTotal, boolean testOnBorrow, boolean testOnReturn, long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis, boolean testWhileIdle)
GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory, GenericKeyedObjectPool.Config config)

Method Summary

KeyedObjectPool
createPool()
Create a new KeyedObjectPool.

Constructor Details

GenericKeyedObjectPoolFactory

public GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory)


GenericKeyedObjectPoolFactory

public GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory,
                                     int maxActive)


GenericKeyedObjectPoolFactory

public GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory,
                                     int maxActive,
                                     byte whenExhaustedAction,
                                     long maxWait)


GenericKeyedObjectPoolFactory

public GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory,
                                     int maxActive,
                                     byte whenExhaustedAction,
                                     long maxWait,
                                     boolean testOnBorrow,
                                     boolean testOnReturn)


GenericKeyedObjectPoolFactory

public GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory,
                                     int maxActive,
                                     byte whenExhaustedAction,
                                     long maxWait,
                                     int maxIdle)


GenericKeyedObjectPoolFactory

public GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory,
                                     int maxActive,
                                     byte whenExhaustedAction,
                                     long maxWait,
                                     int maxIdle,
                                     boolean testOnBorrow,
                                     boolean testOnReturn)


GenericKeyedObjectPoolFactory

public GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory,
                                     int maxActive,
                                     byte whenExhaustedAction,
                                     long maxWait,
                                     int maxIdle,
                                     boolean testOnBorrow,
                                     boolean testOnReturn,
                                     long timeBetweenEvictionRunsMillis,
                                     int numTestsPerEvictionRun,
                                     long minEvictableIdleTimeMillis,
                                     boolean testWhileIdle)


GenericKeyedObjectPoolFactory

public GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory,
                                     int maxActive,
                                     byte whenExhaustedAction,
                                     long maxWait,
                                     int maxIdle,
                                     int maxTotal)


GenericKeyedObjectPoolFactory

public GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory,
                                     int maxActive,
                                     byte whenExhaustedAction,
                                     long maxWait,
                                     int maxIdle,
                                     int maxTotal,
                                     boolean testOnBorrow,
                                     boolean testOnReturn,
                                     long timeBetweenEvictionRunsMillis,
                                     int numTestsPerEvictionRun,
                                     long minEvictableIdleTimeMillis,
                                     boolean testWhileIdle)


GenericKeyedObjectPoolFactory

public GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory,
                                     GenericKeyedObjectPool.Config config)

Method Details

createPool

public KeyedObjectPool createPool()
Create a new KeyedObjectPool.
Specified by:
createPool in interface KeyedObjectPoolFactory

Returns:
a new KeyedObjectPool


Copyright © 2001-2003 Apache Software Foundation. Documenation generated May 21 2005.