Uses of Interface
org.apache.commons.pool.ObjectPool
Packages that use ObjectPool
Package
Description
Object pooling API.
Object pooling API implementations.
-
Uses of ObjectPool in org.apache.commons.pool
Classes in org.apache.commons.pool that implement ObjectPoolModifier and TypeClassDescriptionclass
A simple base implementation ofObjectPool
.private static class
An object pool that performs type checking on objects passed to pool methods.private static class
Decorates an object pool, adding "eroding" behavior.private static class
Adapts a KeyedObjectPool to make it an ObjectPool by fixing restricting to a fixed key.private static class
A synchronized (thread-safe) ObjectPool backed by the specified ObjectPool.Fields in org.apache.commons.pool declared as ObjectPoolModifier and TypeFieldDescriptionprivate final ObjectPool
<T> PoolUtils.CheckedObjectPool.pool
Underlying object poolprivate final ObjectPool
<T> PoolUtils.ErodingObjectPool.pool
Underlying object poolprivate final ObjectPool
<V> PoolUtils.KeyedObjectPoolAdaptor.pool
Underlying poolprivate final ObjectPool
<T> PoolUtils.ObjectPoolMinIdleTimerTask.pool
Object poolprivate final ObjectPool
<T> PoolUtils.SynchronizedObjectPool.pool
the underlying object poolMethods in org.apache.commons.pool that return ObjectPoolModifier and TypeMethodDescriptionstatic <V> ObjectPool
<V> PoolUtils.adapt
(KeyedObjectPool<Object, V> keyedPool) Adapt aKeyedObjectPool
instance to work where anObjectPool
is needed.static <V> ObjectPool
<V> PoolUtils.adapt
(KeyedObjectPool<Object, V> keyedPool, Object key) Adapt aKeyedObjectPool
instance to work where anObjectPool
is needed using the specifiedkey
when delegating.static <T> ObjectPool
<T> PoolUtils.checkedPool
(ObjectPool<T> pool, Class<T> type) Wraps anObjectPool
and dynamically checks the type of objects borrowed and returned to the pool.ObjectPoolFactory.createPool()
Create and return a newObjectPool
.static <T> ObjectPool
<T> PoolUtils.erodingPool
(ObjectPool<T> pool) Returns a pool that adaptively decreases it's size when idle objects are no longer needed.static <T> ObjectPool
<T> PoolUtils.erodingPool
(ObjectPool<T> pool, float factor) Returns a pool that adaptively decreases it's size when idle objects are no longer needed.static <T> ObjectPool
<T> PoolUtils.synchronizedPool
(ObjectPool<T> pool) Returns a synchronized (thread-safe) ObjectPool backed by the specified ObjectPool.Methods in org.apache.commons.pool with parameters of type ObjectPoolModifier and TypeMethodDescriptionstatic <K,
V> KeyedObjectPool <K, V> PoolUtils.adapt
(ObjectPool<V> pool) Adapt anObjectPool
to work where anKeyedObjectPool
is needed.static <T> ObjectPool
<T> PoolUtils.checkedPool
(ObjectPool<T> pool, Class<T> type) Wraps anObjectPool
and dynamically checks the type of objects borrowed and returned to the pool.static <T> TimerTask
PoolUtils.checkMinIdle
(ObjectPool<T> pool, int minIdle, long period) Periodically check the idle object count for the pool.static <T> ObjectPool
<T> PoolUtils.erodingPool
(ObjectPool<T> pool) Returns a pool that adaptively decreases it's size when idle objects are no longer needed.static <T> ObjectPool
<T> PoolUtils.erodingPool
(ObjectPool<T> pool, float factor) Returns a pool that adaptively decreases it's size when idle objects are no longer needed.static <T> void
PoolUtils.prefill
(ObjectPool<T> pool, int count) CalladdObject()
onpool
count
number of times.static <T> ObjectPool
<T> PoolUtils.synchronizedPool
(ObjectPool<T> pool) Returns a synchronized (thread-safe) ObjectPool backed by the specified ObjectPool.Constructors in org.apache.commons.pool with parameters of type ObjectPoolModifierConstructorDescription(package private)
CheckedObjectPool
(ObjectPool<T> pool, Class<T> type) Create a CheckedObjectPool accepting objects of the given type using the given pool.ErodingObjectPool
(ObjectPool<T> pool, float factor) Create an ErodingObjectPool wrapping the given pool using the specified erosion factor.(package private)
KeyedObjectPoolAdaptor
(ObjectPool<V> pool) Create a new KeyedObjectPoolAdaptor wrapping the given ObjectPool(package private)
ObjectPoolMinIdleTimerTask
(ObjectPool<T> pool, int minIdle) Create a new ObjectPoolMinIdleTimerTask for the given pool with the given minIdle setting.(package private)
SynchronizedObjectPool
(ObjectPool<T> pool) Create a new SynchronizedObjectPool wrapping the given pool. -
Uses of ObjectPool in org.apache.commons.pool.impl
Classes in org.apache.commons.pool.impl that implement ObjectPoolModifier and TypeClassDescriptionclass
A configurableObjectPool
implementation.class
ASoftReference
basedObjectPool
.class
A simple,Stack
-basedObjectPool
implementation.Methods in org.apache.commons.pool.impl that return ObjectPoolModifier and TypeMethodDescriptionGenericObjectPoolFactory.createPool()
Create and return a newObjectPool
.StackObjectPoolFactory.createPool()
Create a StackObjectPool.