Uses of Interface
org.apache.commons.pool2.ObjectPool
-
Packages that use ObjectPool Package Description org.apache.commons.pool2 Object pooling API.org.apache.commons.pool2.impl Object pooling API implementations.org.apache.commons.pool2.proxy Object pooling proxy implementation. -
-
Uses of ObjectPool in org.apache.commons.pool2
Classes in org.apache.commons.pool2 that implement ObjectPool Modifier and Type Class Description classBaseObjectPool<T>A simple base implementation ofObjectPool.private static classPoolUtils.ErodingObjectPool<T>Decorates an object pool, adding "eroding" behavior.private static classPoolUtils.SynchronizedObjectPool<T>A synchronized (thread-safe) ObjectPool backed by the specified ObjectPool.Fields in org.apache.commons.pool2 declared as ObjectPool Modifier and Type Field Description private ObjectPool<T>PoolUtils.ErodingObjectPool. poolUnderlying object poolprivate ObjectPool<T>PoolUtils.ObjectPoolMinIdleTimerTask. poolObject poolprivate ObjectPool<T>PoolUtils.SynchronizedObjectPool. poolthe underlying object poolMethods in org.apache.commons.pool2 that return ObjectPool Modifier and Type Method Description 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> 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 ObjectPool Modifier and Type Method Description 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 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)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.pool2 with parameters of type ObjectPool Constructor Description ErodingObjectPool(ObjectPool<T> pool, float factor)Create an ErodingObjectPool wrapping the given pool using the specified erosion factor.ObjectPoolMinIdleTimerTask(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.pool2.impl
Classes in org.apache.commons.pool2.impl that implement ObjectPool Modifier and Type Class Description classGenericObjectPool<T>A configurableObjectPoolimplementation.classSoftReferenceObjectPool<T>ASoftReferencebasedObjectPool. -
Uses of ObjectPool in org.apache.commons.pool2.proxy
Classes in org.apache.commons.pool2.proxy that implement ObjectPool Modifier and Type Class Description classProxiedObjectPool<T>Create 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 ObjectPool Modifier and Type Field Description private ObjectPool<T>ProxiedObjectPool. poolConstructors in org.apache.commons.pool2.proxy with parameters of type ObjectPool Constructor Description ProxiedObjectPool(ObjectPool<T> pool, ProxySource<T> proxySource)Create a new proxied object pool.
-