Uses of Interface
org.apache.commons.pool2.ObjectPool
Packages that use ObjectPool
Package
Description
Object pooling API.
Object pooling API implementations.
Object pooling proxy implementations.
-
Uses of ObjectPool in org.apache.commons.pool2
Classes in org.apache.commons.pool2 that implement ObjectPoolModifier and TypeClassDescriptionclassA simple base implementation ofObjectPool.private static final classDecorates an object pool, adding "eroding" behavior.private static final classA synchronized (thread-safe) ObjectPool backed by the specified ObjectPool.Fields in org.apache.commons.pool2 declared as ObjectPoolModifier and TypeFieldDescriptionprivate final ObjectPool<T> PoolUtils.ErodingObjectPool.poolUnderlying object poolprivate final ObjectPool<T> PoolUtils.ObjectPoolMinIdleTimerTask.poolObject poolprivate final ObjectPool<T> PoolUtils.SynchronizedObjectPool.poolThe underlying object poolMethods in org.apache.commons.pool2 that return ObjectPoolModifier and TypeMethodDescriptionstatic <T> ObjectPool<T> PoolUtils.erodingPool(ObjectPool<T> pool) Returns a pool that adaptively decreases its 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 its 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.pool2 with parameters of type ObjectPoolModifier and TypeMethodDescriptionstatic <T> TimerTaskPoolUtils.checkMinIdle(ObjectPool<T> pool, int minIdle, long periodMillis) Periodically check the idle object count for the pool.static <T> ObjectPool<T> PoolUtils.erodingPool(ObjectPool<T> pool) Returns a pool that adaptively decreases its 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 its size when idle objects are no longer needed.static <T> voidPoolUtils.prefill(ObjectPool<T> pool, int count) Deprecated.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.pool2 with parameters of type ObjectPoolModifierConstructorDescriptionprivateErodingObjectPool(ObjectPool<T> pool, float factor) Creates an ErodingObjectPool wrapping the given pool using the specified erosion factor.(package private)ObjectPoolMinIdleTimerTask(ObjectPool<T> pool, int minIdle) Constructs a new ObjectPoolMinIdleTimerTask for the given pool with the given minIdle setting.(package private)SynchronizedObjectPool(ObjectPool<T> pool) Creates a new SynchronizedObjectPool wrapping the given pool. -
Uses of ObjectPool in org.apache.commons.pool2.impl
Classes in org.apache.commons.pool2.impl that implement ObjectPoolModifier and TypeClassDescriptionclassA configurableObjectPoolimplementation.classASoftReferencebasedObjectPool. -
Uses of ObjectPool in org.apache.commons.pool2.proxy
Classes in org.apache.commons.pool2.proxy that implement ObjectPoolModifier and TypeClassDescriptionclassCreate a new object pool where the pooled objects are wrapped in proxies allowing better control of pooled objects and in particular the prevention of the continued use of an object by a client after that client returns the object to the pool.Fields in org.apache.commons.pool2.proxy declared as ObjectPoolConstructors in org.apache.commons.pool2.proxy with parameters of type ObjectPoolModifierConstructorDescriptionProxiedObjectPool(ObjectPool<T> pool, ProxySource<T> proxySource) Constructs a new proxied object pool.
addObjects(int).