Top Description Interfaces Classes
[default module]

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

Modifier and TypeInterface and Description
public interface
CallStack

Strategy for obtaining and printing the current call stack.

public interface
DefaultPooledObjectInfoMBean

The interface that defines the information about pooled objects that will be exposed via JMX.

public interface
EvictionPolicy<
the type of objects in the pool
T
>

To provide a custom eviction policy (i.e. something other than DefaultEvictionPolicy for a pool, users must provide an implementation of this interface that provides the required eviction policy.

public interface
GenericKeyedObjectPoolMXBean<
The type of keys maintained by the pool.
K
>

Defines the methods that will be made available via JMX.

public interface
GenericObjectPoolMXBean

Defines the methods that will be made available via JMX.

Class Summary

Modifier and TypeClass and Description
public class
AbandonedConfig

Configuration settings for abandoned object removal.

public abstract class
BaseGenericObjectPool<
Type of element pooled in this pool.
T
>

Base class that provides common functionality for GenericObjectPool and GenericKeyedObjectPool.

public abstract class
BaseObjectPoolConfig<
Type of element pooled.
T
>

Provides the implementation for the common attributes shared by the sub-classes.

public class
CallStackUtils

Utility methods for CallStack.

public class
DefaultEvictionPolicy<
the type of objects in the pool.
T
>

Provides the default implementation of EvictionPolicy used by the pools.

public class
DefaultPooledObject<
the type of object in the pool
T
>

This wrapper is used to track the additional information, such as state, for the pooled objects.

public class
DefaultPooledObjectInfo

Implementation of object that is used to provide information on pooled objects via JMX.

public class
EvictionConfig

This class is used by pool implementations to pass configuration information to EvictionPolicy instances.

pack-priv class
EvictionTimer

Provides a shared idle object eviction timer for all pools.

public class
GenericKeyedObjectPool<
The type of keys maintained by this pool.
K
,
Type of element pooled in this pool.
T
>

A configurable KeyedObjectPool implementation.

public class
GenericKeyedObjectPoolConfig<
Type of element pooled.
T
>

A simple structure encapsulating the configuration for a GenericKeyedObjectPool.

public class
GenericObjectPool<
Type of element pooled in this pool.
T
>

A configurable ObjectPool implementation.

public class
GenericObjectPoolConfig<
Type of element pooled.
T
>

A simple structure encapsulating the configuration for a GenericObjectPool.

pack-priv class
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.

pack-priv class
LinkedBlockingDeque<
the type of elements held in this collection Note: This was copied from Apache Harmony and modified to suit the needs of Commons Pool.
E
>

An optionally-bounded blocking deque based on linked nodes.

public class
NoOpCallStack

CallStack strategy using no-op implementations of all functionality.

public class
PooledSoftReference<
the type of the underlying object that the wrapped SoftReference refers to.
T
>

Extension of DefaultPooledObject to wrap pooled soft references.

pack-priv class
PoolImplUtils

Implementation specific utilities.

public class
public class
SoftReferenceObjectPool<
Type of element pooled in this pool.
T
>

A SoftReference based ObjectPool.

public class
ThrowableCallStack

CallStack strategy that uses the stack trace from a Throwable.