Uses of Interface
org.apache.commons.pool2.KeyedObjectPool
Packages that use KeyedObjectPool
Package
Description
Object pooling API.
Object pooling API implementations.
Object pooling proxy implementation.
-
Uses of KeyedObjectPool in org.apache.commons.pool2
Classes in org.apache.commons.pool2 that implement KeyedObjectPoolModifier and TypeClassDescriptionprivate static classDecorates a keyed object pool, adding "eroding" behavior.private static final classExtends ErodingKeyedObjectPool to allow erosion to take place on a per-key basis.(package private) static final classA synchronized (thread-safe) KeyedObjectPool backed by the specified KeyedObjectPool.Fields in org.apache.commons.pool2 declared as KeyedObjectPoolModifier and TypeFieldDescriptionprivate final KeyedObjectPool<K,V> PoolUtils.ErodingKeyedObjectPool.keyedPoolUnderlying poolprivate final KeyedObjectPool<K,V> PoolUtils.KeyedObjectPoolMinIdleTimerTask.keyedPoolKeyed object poolprivate final KeyedObjectPool<K,V> PoolUtils.SynchronizedKeyedObjectPool.keyedPoolUnderlying object poolMethods in org.apache.commons.pool2 that return KeyedObjectPoolModifier and TypeMethodDescriptionstatic <K,V> KeyedObjectPool<K, V> PoolUtils.erodingPool(KeyedObjectPool<K, V> keyedPool) Returns a pool that adaptively decreases its size when idle objects are no longer needed.static <K,V> KeyedObjectPool<K, V> PoolUtils.erodingPool(KeyedObjectPool<K, V> keyedPool, float factor) Returns a pool that adaptively decreases its size when idle objects are no longer needed.static <K,V> KeyedObjectPool<K, V> PoolUtils.erodingPool(KeyedObjectPool<K, V> keyedPool, float factor, boolean perKey) Returns a pool that adaptively decreases its size when idle objects are no longer needed.protected KeyedObjectPool<K,V> PoolUtils.ErodingKeyedObjectPool.getKeyedPool()Gets the underlying poolstatic <K,V> KeyedObjectPool<K, V> PoolUtils.synchronizedPool(KeyedObjectPool<K, V> keyedPool) Returns a synchronized (thread-safe) KeyedObjectPool backed by the specified KeyedObjectPool.Methods in org.apache.commons.pool2 with parameters of type KeyedObjectPoolModifier and TypeMethodDescriptionPoolUtils.checkMinIdle(KeyedObjectPool<K, V> keyedPool, Collection<K> keys, int minIdle, long periodMillis) Periodically check the idle object count for each key in theCollection keysin the keyedPool.static <K,V> TimerTask PoolUtils.checkMinIdle(KeyedObjectPool<K, V> keyedPool, K key, int minIdle, long periodMillis) Periodically check the idle object count for the key in the keyedPool.static <K,V> KeyedObjectPool<K, V> PoolUtils.erodingPool(KeyedObjectPool<K, V> keyedPool) Returns a pool that adaptively decreases its size when idle objects are no longer needed.static <K,V> KeyedObjectPool<K, V> PoolUtils.erodingPool(KeyedObjectPool<K, V> keyedPool, float factor) Returns a pool that adaptively decreases its size when idle objects are no longer needed.static <K,V> KeyedObjectPool<K, V> PoolUtils.erodingPool(KeyedObjectPool<K, V> keyedPool, float factor, boolean perKey) Returns a pool that adaptively decreases its size when idle objects are no longer needed.static <K,V> void PoolUtils.prefill(KeyedObjectPool<K, V> keyedPool, Collection<K> keys, int count) Deprecated.static <K,V> void PoolUtils.prefill(KeyedObjectPool<K, V> keyedPool, K key, int count) Deprecated.static <K,V> KeyedObjectPool<K, V> PoolUtils.synchronizedPool(KeyedObjectPool<K, V> keyedPool) Returns a synchronized (thread-safe) KeyedObjectPool backed by the specified KeyedObjectPool.Constructors in org.apache.commons.pool2 with parameters of type KeyedObjectPoolModifierConstructorDescriptionErodingKeyedObjectPool(KeyedObjectPool<K, V> keyedPool, float factor) Creates an ErodingObjectPool wrapping the given pool using the specified erosion factor.protectedErodingKeyedObjectPool(KeyedObjectPool<K, V> keyedPool, PoolUtils.ErodingFactor erodingFactor) Creates an ErodingObjectPool wrapping the given pool using the specified erosion factor.ErodingPerKeyKeyedObjectPool(KeyedObjectPool<K, V> keyedPool, float factor) Creates a new ErordingPerKeyKeyedObjectPool decorating the given keyed pool with the specified erosion factor.(package private)KeyedObjectPoolMinIdleTimerTask(KeyedObjectPool<K, V> keyedPool, K key, int minIdle) Creates a new KeyedObjecPoolMinIdleTimerTask.(package private)SynchronizedKeyedObjectPool(KeyedObjectPool<K, V> keyedPool) Creates a new SynchronizedKeyedObjectPool wrapping the given pool -
Uses of KeyedObjectPool in org.apache.commons.pool2.impl
Classes in org.apache.commons.pool2.impl that implement KeyedObjectPoolModifier and TypeClassDescriptionclassA configurableKeyedObjectPoolimplementation. -
Uses of KeyedObjectPool in org.apache.commons.pool2.proxy
Classes in org.apache.commons.pool2.proxy that implement KeyedObjectPoolModifier and TypeClassDescriptionclassCreate a new keyed 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 KeyedObjectPoolConstructors in org.apache.commons.pool2.proxy with parameters of type KeyedObjectPoolModifierConstructorDescriptionProxiedKeyedObjectPool(KeyedObjectPool<K, V> pool, ProxySource<V> proxySource) Constructs a new proxied object pool.
addObjects(Collection, int).