Package org.apache.commons.pool2.impl
Object pooling API implementations.
GenericObjectPool
(GenericKeyedObjectPool
)
provides a more robust (but also more complicated)
implementation of ObjectPool
(KeyedObjectPool
).
SoftReferenceObjectPool
provides a SoftReference
based
ObjectPool
.
See also the org.apache.commons.pool2
package.
-
Interface Summary Interface Description DefaultPooledObjectInfoMBean The interface that defines the information about pooled objects that will be exposed via JMX.EvictionPolicy<T> To provide a custom eviction policy (i.e.GenericKeyedObjectPoolMXBean<K> Defines the methods that will be made available via JMX.GenericObjectPoolMXBean Defines the methods that will be made available via JMX. -
Class Summary Class Description AbandonedConfig Configuration settings for abandoned object removal.BaseGenericObjectPool<T> Base class that provides common functionality forGenericObjectPool
andGenericKeyedObjectPool
.BaseGenericObjectPool.IdentityWrapper<T> Wrapper for objects under management by the pool.BaseObjectPoolConfig Provides the implementation for the common attributes shared by the sub-classes.DefaultEvictionPolicy<T> Provides the default implementation ofEvictionPolicy
used by the pools.DefaultPooledObject<T> This wrapper is used to track the additional information, such as state, for the pooled objects.DefaultPooledObjectInfo Implementation of object that is used to provide information on pooled objects via JMX.EvictionConfig This class is used by pool implementations to pass configuration information toEvictionPolicy
instances.EvictionTimer Provides a shared idle object eviction timer for all pools.EvictionTimer.PrivilegedGetTccl PrivilegedAction
used to get the ContextClassLoaderEvictionTimer.PrivilegedNewEvictionTimer PrivilegedAction
used to create a new Timer.EvictionTimer.PrivilegedSetTccl PrivilegedAction
used to set the ContextClassLoaderGenericKeyedObjectPool<K,T> A configurableKeyedObjectPool
implementation.GenericKeyedObjectPoolConfig A simple "struct" encapsulating the configuration for aGenericKeyedObjectPool
.GenericObjectPool<T> A configurableObjectPool
implementation.GenericObjectPoolConfig A simple "struct" encapsulating the configuration for aGenericObjectPool
.InterruptibleReentrantLock This sub-class was created to expose the waiting threads so that they can be interrupted when the pool using the queue that uses this lock is closed.LinkedBlockingDeque<E> An optionally-bounded blocking deque based on linked nodes.LinkedBlockingDeque.Node<E> Doubly-linked list node classPooledSoftReference<T> Extension ofDefaultPooledObject
to wrap pooled soft references.PoolImplUtils Implementation specific utilities.SoftReferenceObjectPool<T> ASoftReference
basedObjectPool
. -
Exception Summary Exception Description DefaultPooledObject.AbandonedObjectCreatedException Used to track how an object was obtained from the pool (the stack trace of the exception will show which code borrowed the object) and when the object was borrowed.