Package Documentation for org.apache.commons.pool.impl
Object pooling API implementations.
{@link org.apache.commons.pool.impl.StackObjectPool StackObjectPool}
({@link org.apache.commons.pool.impl.StackKeyedObjectPool StackKeyedObjectPool})
provides a simple, {@link java.util.Stack Stack}-based
implementation of {@link org.apache.commons.pool.ObjectPool ObjectPool}
({@link org.apache.commons.pool.KeyedObjectPool KeyedObjectPool}).
{@link org.apache.commons.pool.impl.StackObjectPoolFactory StackObjectPoolFactory}
({@link org.apache.commons.pool.impl.StackKeyedObjectPoolFactory StackKeyedObjectPoolFactory})
provides an implementation of the
{@link org.apache.commons.pool.ObjectPoolFactory ObjectPoolFactory}
({@link org.apache.commons.pool.KeyedObjectPoolFactory KeyedObjectPoolFactory})
factory interface for this class.
{@link org.apache.commons.pool.impl.GenericObjectPool GenericObjectPool}
({@link org.apache.commons.pool.impl.GenericKeyedObjectPool GenericKeyedObjectPool})
provides a more robust (but also more complicated)
implementation of {@link org.apache.commons.pool.ObjectPool ObjectPool}
({@link org.apache.commons.pool.KeyedObjectPool KeyedObjectPool}).
{@link org.apache.commons.pool.impl.GenericObjectPoolFactory GenericObjectPoolFactory}
({@link org.apache.commons.pool.impl.GenericKeyedObjectPoolFactory GenericKeyedObjectPoolFactory})
provides an implementation of the
{@link org.apache.commons.pool.ObjectPoolFactory ObjectPoolFactory}
({@link org.apache.commons.pool.KeyedObjectPoolFactory KeyedObjectPoolFactory})
factory interface for this class.
See also the {@link org.apache.commons.pool} package.
When coupled with the appropriate
PoolableObjectFactory ,
GenericObjectPool provides robust pooling functionality for
arbitrary objects.
A GenericObjectPool provides a number of configurable parameters:
GenericObjectPool.setMaxActivemaxActive controls the maximum number of
objects that can be allocated by the pool (checked out to clients, or
idle awaiting checkout) at a given time.