Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Package org.apache.commons.pool.impl

Object pooling API.

See:
          Description

Class Summary
GenericKeyedObjectPool A configurable org.apache.commons.pool.KeyedObjectPool implementation.
GenericKeyedObjectPool.Config A simple "struct" encapsulating the configuration information for a GenericKeyedObjectPool.
GenericKeyedObjectPoolFactory A factory for creating GenericKeyedObjectPool instances.
GenericObjectPool A configurable org.apache.commons.pool.ObjectPool implementation.
GenericObjectPool.Config A simple "struct" encapsulating the configuration information for a GenericObjectPool.
GenericObjectPoolFactory A factory for creating GenericObjectPool instances.
SoftReferenceObjectPool A SoftReference based org.apache.commons.pool.ObjectPool.
StackKeyedObjectPool A simple, Stack-based org.apache.commons.pool.KeyedObjectPool implementation.
StackKeyedObjectPoolFactory A factory for creating StackKeyedObjectPool instances.
StackObjectPool A simple, Stack-based org.apache.commons.pool.ObjectPool implementation.
StackObjectPoolFactory A factory for creating StackObjectPool instances.
TestAll JUnit test suite for the org.apache.commons.pool.impl package.
TestGenericKeyedObjectPool  
TestGenericKeyedObjectPool.SimpleFactory  
TestGenericObjectPool  
TestSoftReferenceObjectPool  
TestSoftRefOutOfMemory  
TestSoftRefOutOfMemory.LargePoolableObjectFactory  
TestSoftRefOutOfMemory.SmallPoolableObjectFactory  
TestStackKeyedObjectPool  
TestStackObjectPool  
TestStackObjectPool.SimpleFactory  
 

Package org.apache.commons.pool.impl Description

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.