Uses of Interface
org.apache.commons.pool2.ObjectPool
Package
Description
Object pooling API.
Object pooling API implementations.
Object pooling proxy implementation.
-
Uses of ObjectPool in org.apache.commons.pool2
Modifier 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.Modifier and TypeMethodDescriptionstatic <T> TimerTask
PoolUtils.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> void
PoolUtils.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. -
Uses of ObjectPool in org.apache.commons.pool2.impl
Modifier and TypeClassDescriptionclass
A configurableObjectPool
implementation.class
ASoftReference
basedObjectPool
. -
Uses of ObjectPool in org.apache.commons.pool2.proxy
Modifier and TypeClassDescriptionclass
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.ModifierConstructorDescriptionProxiedObjectPool
(ObjectPool<T> pool, org.apache.commons.pool2.proxy.ProxySource<T> proxySource) Constructs a new proxied object pool.
addObjects(int)
.