Uses of Interface
org.apache.commons.pool.ObjectPool
-
Packages that use ObjectPool Package Description org.apache.commons.pool Object pooling API.org.apache.commons.pool.impl Object pooling API implementations. -
-
Uses of ObjectPool in org.apache.commons.pool
Classes in org.apache.commons.pool that implement ObjectPool Modifier and Type Class Description classBaseObjectPool<T>A simple base implementation ofObjectPool.private static classPoolUtils.CheckedObjectPool<T>An object pool that performs type checking on objects passed to pool methods.private static classPoolUtils.ErodingObjectPool<T>Decorates an object pool, adding "eroding" behavior.private static classPoolUtils.ObjectPoolAdaptor<V>Adapts a KeyedObjectPool to make it an ObjectPool by fixing restricting to a fixed key.private static classPoolUtils.SynchronizedObjectPool<T>A synchronized (thread-safe) ObjectPool backed by the specified ObjectPool.Fields in org.apache.commons.pool declared as ObjectPool Modifier and Type Field Description private ObjectPool<T>PoolUtils.CheckedObjectPool. poolUnderlying object poolprivate ObjectPool<T>PoolUtils.ErodingObjectPool. poolUnderlying object poolprivate ObjectPool<V>PoolUtils.KeyedObjectPoolAdaptor. poolUnderlying poolprivate ObjectPool<T>PoolUtils.ObjectPoolMinIdleTimerTask. poolObject poolprivate ObjectPool<T>PoolUtils.SynchronizedObjectPool. poolthe underlying object poolMethods in org.apache.commons.pool that return ObjectPool Modifier and Type Method Description static <V> ObjectPool<V>PoolUtils. adapt(KeyedObjectPool<java.lang.Object,V> keyedPool)Adapt aKeyedObjectPoolinstance to work where anObjectPoolis needed.static <V> ObjectPool<V>PoolUtils. adapt(KeyedObjectPool<java.lang.Object,V> keyedPool, java.lang.Object key)Adapt aKeyedObjectPoolinstance to work where anObjectPoolis needed using the specifiedkeywhen delegating.static <T> ObjectPool<T>PoolUtils. checkedPool(ObjectPool<T> pool, java.lang.Class<T> type)Wraps anObjectPooland dynamically checks the type of objects borrowed and returned to the pool.ObjectPool<T>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 ObjectPool Modifier and Type Method Description static <K,V>
KeyedObjectPool<K,V>PoolUtils. adapt(ObjectPool<V> pool)Adapt anObjectPoolto work where anKeyedObjectPoolis needed.static <T> ObjectPool<T>PoolUtils. checkedPool(ObjectPool<T> pool, java.lang.Class<T> type)Wraps anObjectPooland dynamically checks the type of objects borrowed and returned to the pool.static <T> java.util.TimerTaskPoolUtils. 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> voidPoolUtils. prefill(ObjectPool<T> pool, int count)CalladdObject()onpoolcountnumber 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 ObjectPool Constructor Description CheckedObjectPool(ObjectPool<T> pool, java.lang.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.KeyedObjectPoolAdaptor(ObjectPool<V> pool)Create a new KeyedObjectPoolAdaptor wrapping the given ObjectPoolObjectPoolMinIdleTimerTask(ObjectPool<T> pool, int minIdle)Create a new ObjectPoolMinIdleTimerTask for the given pool with the given minIdle setting.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 ObjectPool Modifier and Type Class Description classGenericObjectPool<T>A configurableObjectPoolimplementation.classSoftReferenceObjectPool<T>ASoftReferencebasedObjectPool.classStackObjectPool<T>A simple,Stack-basedObjectPoolimplementation.Methods in org.apache.commons.pool.impl that return ObjectPool Modifier and Type Method Description ObjectPool<T>GenericObjectPoolFactory. createPool()Create and return a newObjectPool.ObjectPool<T>StackObjectPoolFactory. createPool()Create a StackObjectPool.
-