Package org.apache.commons.pool.impl
Object pooling API implementations.
StackObjectPool
(StackKeyedObjectPool)
provides a simple, Stack-based
implementation of ObjectPool
(KeyedObjectPool).
StackObjectPoolFactory
(StackKeyedObjectPoolFactory)
provides an implementation of the
ObjectPoolFactory
(KeyedObjectPoolFactory)
factory interface for this class.
GenericObjectPool
(GenericKeyedObjectPool)
provides a more robust (but also more complicated)
implementation of ObjectPool
(KeyedObjectPool).
GenericObjectPoolFactory
(GenericKeyedObjectPoolFactory)
provides an implementation of the
ObjectPoolFactory
(KeyedObjectPoolFactory)
factory interface for this class.
See also the org.apache.commons.pool package.
-
Class Summary Class Description CursorableLinkedList<E> This class has been copied from Commons Collections, version 3.1 in order to eliminate the dependency of pool on collections.CursorableLinkedList.Listable<E> CursorableSubList<E> EvictionTimer Provides a shared idle object eviction timer for all pools.EvictionTimer.PrivilegedGetTccl PrivilegedActionused to get the ContextClassLoaderEvictionTimer.PrivilegedSetTccl PrivilegedActionused to set the ContextClassLoaderGenericKeyedObjectPool<K,V> A configurableKeyedObjectPoolimplementation.GenericKeyedObjectPool.Config A simple "struct" encapsulating the configuration information for aGenericKeyedObjectPool.GenericKeyedObjectPool.ObjectTimestampPair<T> A simple "struct" encapsulating an object instance and a timestamp.GenericKeyedObjectPoolFactory<K,V> A factory for creatingGenericKeyedObjectPoolinstances.GenericObjectPool<T> A configurableObjectPoolimplementation.GenericObjectPool.Config A simple "struct" encapsulating the configuration information for aGenericObjectPool.GenericObjectPool.Latch<T> Latch used to control allocation order of objects to threads to ensure fairness.GenericObjectPoolFactory<T> A factory for creatingGenericObjectPoolinstances.SoftReferenceObjectPool<T> ASoftReferencebasedObjectPool.StackKeyedObjectPool<K,V> A simple,Stack-basedKeyedObjectPoolimplementation.StackKeyedObjectPoolFactory<K,V> A factory for creatingStackKeyedObjectPoolinstances.StackObjectPool<T> A simple,Stack-basedObjectPoolimplementation.StackObjectPoolFactory<T> A factory for creatingStackObjectPoolinstances.