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 CallStack Strategy for obtaining and printing the current call stack.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 forGenericObjectPoolandGenericKeyedObjectPool.BaseGenericObjectPool.IdentityWrapper<T> Wrapper for objects under management by the pool.BaseGenericObjectPool.StatsStore Maintains a cache of values for a single metric and reports statistics on the cached values.BaseObjectPoolConfig<T> Provides the implementation for the common attributes shared by the sub-classes.CallStackUtils Utility methods forCallStack.DefaultEvictionPolicy<T> Provides the default implementation ofEvictionPolicyused by the pools.DefaultPooledObject<T> This wrapper is used to track the additional information, such as state, for the pooled objects.DefaultPooledObjectInfo Implements providing information on pooled objects via JMX.EvictionConfig This class is used by pool implementations to pass configuration information toEvictionPolicyinstances.EvictionTimer Provides a shared idle object eviction timer for all pools.EvictionTimer.EvictorThreadFactory Thread factory that creates a daemon thread, with the context class loader from this class.EvictionTimer.Reaper Task that removes references to abandoned tasks and shuts down the executor if there are no live tasks left.EvictionTimer.WeakRunner<R extends java.lang.Runnable> Runnable that runs the referent of a weak reference.GenericKeyedObjectPool<K,T> A configurableKeyedObjectPoolimplementation.GenericKeyedObjectPool.ObjectDeque<S> Maintains information on the per key queue for a given key.GenericKeyedObjectPoolConfig<T> A simple structure encapsulating the configuration for aGenericKeyedObjectPool.GenericObjectPool<T> A configurableObjectPoolimplementation.GenericObjectPoolConfig<T> A simple structure 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 class.NoOpCallStack CallStack strategy using no-op implementations of all functionality.PooledSoftReference<T> Extension ofDefaultPooledObjectto wrap pooled soft references.PoolImplUtils Implementation specific utilities.SecurityManagerCallStack ACallStackstrategy using aSecurityManager.SecurityManagerCallStack.PrivateSecurityManager A custom security manager.SecurityManagerCallStack.Snapshot A snapshot of a class stack.SoftReferenceObjectPool<T> ASoftReferencebasedObjectPool.ThrowableCallStack CallStack strategy that uses the stack trace from aThrowable.ThrowableCallStack.Snapshot A snapshot of a throwable.