Package org.apache.commons.pool
SinceNot specified.
VersionNot specified.
AuthorNot specified.
Wiki javadoc Use textile entry format.
Add your comments here.
Interfaces
KeyedObjectPool A "keyed" pooling interface.
KeyedObjectPoolFactory A factory for creating KeyedObjectPool s.
KeyedPoolableObjectFactory An interface defining life-cycle methods for instances to be served by a KeyedObjectPool .
ObjectPool A pooling interface.
ObjectPoolFactory A factory interface for creating ObjectPool s.
PoolableObjectFactory An interface defining life-cycle methods for instances to be used in an ObjectPool .
Classes
BaseKeyedObjectPool A simple base impementation of ObjectPool .
BaseKeyedPoolableObjectFactory A base implemenation of KeyedPoolableObjectFactory .
BaseObjectPool A simple base impementation of ObjectPool .
BasePoolableObjectFactory A base implemenation of PoolableObjectFactory .
PoolUtils This class consists exclusively of static methods that operate on or return keyedPool related interfaces.

Object pooling API.

The org.apache.commons.pool package defines a simple interface for a pool of object instances, and a handful of base classes that may be useful when creating pool implementations.

The pool package itself doesn't define a specific object pooling implementation, but rather a contract that implementations may support in order to be fully interchangeable.

The pool package separates the way in which instances are pooled from the way in which they are created, resulting in a pair of interfaces:

ObjectPool
defines a simple object pooling interface, with methods for borrowing instances from and returning them to the pool.
PoolableObjectFactory
defines lifecycle methods for object instances contained within a pool. By associating a factory with a pool, the pool can create new object instances as needed.

ObjectPoolFactory defines a simple factory for ObjectPools, which may be useful for some applications.

The pool package also provides a keyed pool interface, which pools instances of multiple types, accessed according to an arbitrary key. See KeyedObjectPool , KeyedPoolableObjectFactory , and KeyedObjectPoolFactory .