org.apache.commons.pool.impl
Class GenericKeyedObjectPoolFactory

java.lang.Object
  |
  +--org.apache.commons.pool.impl.GenericKeyedObjectPoolFactory
All 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 $
See Also:
GenericKeyedObjectPool, KeyedObjectPoolFactory

Field Summary
protected  org.apache.commons.pool.KeyedPoolableObjectFactory _factory
           
protected  int _maxActive
           
protected  int _maxIdle
           
protected  int _maxTotal
           
protected  long _maxWait
           
protected  long _minEvictableIdleTimeMillis
           
protected  int _numTestsPerEvictionRun
           
protected  boolean _testOnBorrow
           
protected  boolean _testOnReturn
           
protected  boolean _testWhileIdle
           
protected  long _timeBetweenEvictionRunsMillis
           
protected  byte _whenExhaustedAction
           
 
Constructor Summary
GenericKeyedObjectPoolFactory(org.apache.commons.pool.KeyedPoolableObjectFactory factory)
           
GenericKeyedObjectPoolFactory(org.apache.commons.pool.KeyedPoolableObjectFactory factory, GenericKeyedObjectPool.Config config)
           
GenericKeyedObjectPoolFactory(org.apache.commons.pool.KeyedPoolableObjectFactory factory, int maxActive)
           
GenericKeyedObjectPoolFactory(org.apache.commons.pool.KeyedPoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait)
           
GenericKeyedObjectPoolFactory(org.apache.commons.pool.KeyedPoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait, boolean testOnBorrow, boolean testOnReturn)
           
GenericKeyedObjectPoolFactory(org.apache.commons.pool.KeyedPoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle)
           
GenericKeyedObjectPoolFactory(org.apache.commons.pool.KeyedPoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, boolean testOnBorrow, boolean testOnReturn)
           
GenericKeyedObjectPoolFactory(org.apache.commons.pool.KeyedPoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, boolean testOnBorrow, boolean testOnReturn, long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis, boolean testWhileIdle)
           
GenericKeyedObjectPoolFactory(org.apache.commons.pool.KeyedPoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, int maxTotal)
           
GenericKeyedObjectPoolFactory(org.apache.commons.pool.KeyedPoolableObjectFactory factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, int maxTotal, boolean testOnBorrow, boolean testOnReturn, long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis, boolean testWhileIdle)
           
 
Method Summary
 org.apache.commons.pool.KeyedObjectPool createPool()
          Create a new KeyedObjectPool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_maxIdle

protected int _maxIdle

_maxActive

protected int _maxActive

_maxTotal

protected int _maxTotal

_maxWait

protected long _maxWait

_whenExhaustedAction

protected byte _whenExhaustedAction

_testOnBorrow

protected boolean _testOnBorrow

_testOnReturn

protected boolean _testOnReturn

_testWhileIdle

protected boolean _testWhileIdle

_timeBetweenEvictionRunsMillis

protected long _timeBetweenEvictionRunsMillis

_numTestsPerEvictionRun

protected int _numTestsPerEvictionRun

_minEvictableIdleTimeMillis

protected long _minEvictableIdleTimeMillis

_factory

protected org.apache.commons.pool.KeyedPoolableObjectFactory _factory
Constructor Detail

GenericKeyedObjectPoolFactory

public GenericKeyedObjectPoolFactory(org.apache.commons.pool.KeyedPoolableObjectFactory factory)

GenericKeyedObjectPoolFactory

public GenericKeyedObjectPoolFactory(org.apache.commons.pool.KeyedPoolableObjectFactory factory,
                                     GenericKeyedObjectPool.Config config)

GenericKeyedObjectPoolFactory

public GenericKeyedObjectPoolFactory(org.apache.commons.pool.KeyedPoolableObjectFactory factory,
                                     int maxActive)

GenericKeyedObjectPoolFactory

public GenericKeyedObjectPoolFactory(org.apache.commons.pool.KeyedPoolableObjectFactory factory,
                                     int maxActive,
                                     byte whenExhaustedAction,
                                     long maxWait)

GenericKeyedObjectPoolFactory

public GenericKeyedObjectPoolFactory(org.apache.commons.pool.KeyedPoolableObjectFactory factory,
                                     int maxActive,
                                     byte whenExhaustedAction,
                                     long maxWait,
                                     boolean testOnBorrow,
                                     boolean testOnReturn)

GenericKeyedObjectPoolFactory

public GenericKeyedObjectPoolFactory(org.apache.commons.pool.KeyedPoolableObjectFactory factory,
                                     int maxActive,
                                     byte whenExhaustedAction,
                                     long maxWait,
                                     int maxIdle)

GenericKeyedObjectPoolFactory

public GenericKeyedObjectPoolFactory(org.apache.commons.pool.KeyedPoolableObjectFactory factory,
                                     int maxActive,
                                     byte whenExhaustedAction,
                                     long maxWait,
                                     int maxIdle,
                                     int maxTotal)

GenericKeyedObjectPoolFactory

public GenericKeyedObjectPoolFactory(org.apache.commons.pool.KeyedPoolableObjectFactory factory,
                                     int maxActive,
                                     byte whenExhaustedAction,
                                     long maxWait,
                                     int maxIdle,
                                     boolean testOnBorrow,
                                     boolean testOnReturn)

GenericKeyedObjectPoolFactory

public GenericKeyedObjectPoolFactory(org.apache.commons.pool.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(org.apache.commons.pool.KeyedPoolableObjectFactory factory,
                                     int maxActive,
                                     byte whenExhaustedAction,
                                     long maxWait,
                                     int maxIdle,
                                     int maxTotal,
                                     boolean testOnBorrow,
                                     boolean testOnReturn,
                                     long timeBetweenEvictionRunsMillis,
                                     int numTestsPerEvictionRun,
                                     long minEvictableIdleTimeMillis,
                                     boolean testWhileIdle)
Method Detail

createPool

public org.apache.commons.pool.KeyedObjectPool createPool()
Description copied from interface: KeyedObjectPoolFactory
Create a new KeyedObjectPool.

Specified by:
createPool in interface KeyedObjectPoolFactory
Returns:
a new KeyedObjectPool


Copyright © 2001-2004 The Apache Software Foundation. All Rights Reserved.