Uses of Interface
org.apache.commons.pool.KeyedObjectPool
-
Packages that use KeyedObjectPool Package Description org.apache.commons.pool Object pooling API.org.apache.commons.pool.impl Object pooling API implementations. -
-
Uses of KeyedObjectPool in org.apache.commons.pool
Classes in org.apache.commons.pool that implement KeyedObjectPool Modifier and Type Class Description classBaseKeyedObjectPool<K,V>A simple base implementation ofKeyedObjectPool.private static classPoolUtils.CheckedKeyedObjectPool<K,V>A keyed object pool that performs type checking on objects passed to pool methods.private static classPoolUtils.ErodingKeyedObjectPool<K,V>Decorates a keyed object pool, adding "eroding" behavior.private static classPoolUtils.ErodingPerKeyKeyedObjectPool<K,V>Extends ErodingKeyedObjectPool to allow erosion to take place on a per-key basis.private static classPoolUtils.KeyedObjectPoolAdaptor<K,V>Adapts an ObjectPool to implement KeyedObjectPool by ignoring key arguments.private static classPoolUtils.SynchronizedKeyedObjectPool<K,V>A synchronized (thread-safe) KeyedObjectPool backed by the specified KeyedObjectPool.Fields in org.apache.commons.pool declared as KeyedObjectPool Modifier and Type Field Description private KeyedObjectPool<K,V>PoolUtils.CheckedKeyedObjectPool. keyedPoolUnderlying poolprivate KeyedObjectPool<K,V>PoolUtils.ErodingKeyedObjectPool. keyedPoolUnderlying poolprivate KeyedObjectPool<K,V>PoolUtils.KeyedObjectPoolMinIdleTimerTask. keyedPoolKeyed object poolprivate KeyedObjectPool<java.lang.Object,V>PoolUtils.ObjectPoolAdaptor. keyedPoolUnderlying KeyedObjectPoolprivate KeyedObjectPool<K,V>PoolUtils.SynchronizedKeyedObjectPool. keyedPoolUnderlying object poolMethods in org.apache.commons.pool that return KeyedObjectPool Modifier and Type Method Description static <K,V>
KeyedObjectPool<K,V>PoolUtils. adapt(ObjectPool<V> pool)Adapt anObjectPoolto work where anKeyedObjectPoolis needed.static <K,V>
KeyedObjectPool<K,V>PoolUtils. checkedPool(KeyedObjectPool<K,V> keyedPool, java.lang.Class<V> type)Wraps aKeyedObjectPooland dynamically checks the type of objects borrowed and returned to the keyedPool.KeyedObjectPool<K,V>KeyedObjectPoolFactory. createPool()Create a newKeyedObjectPool.static <K,V>
KeyedObjectPool<K,V>PoolUtils. erodingPool(KeyedObjectPool<K,V> keyedPool)Returns a pool that adaptively decreases it's 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 it's 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 it's size when idle objects are no longer needed.protected KeyedObjectPool<K,V>PoolUtils.ErodingKeyedObjectPool. getKeyedPool()Returns 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.pool with parameters of type KeyedObjectPool 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 <K,V>
KeyedObjectPool<K,V>PoolUtils. checkedPool(KeyedObjectPool<K,V> keyedPool, java.lang.Class<V> type)Wraps aKeyedObjectPooland dynamically checks the type of objects borrowed and returned to the keyedPool.static <K,V>
java.util.Map<K,java.util.TimerTask>PoolUtils. checkMinIdle(KeyedObjectPool<K,V> keyedPool, java.util.Collection<? extends K> keys, int minIdle, long period)Periodically check the idle object count for each key in theCollectionkeysin the keyedPool.static <K,V>
java.util.TimerTaskPoolUtils. checkMinIdle(KeyedObjectPool<K,V> keyedPool, K key, int minIdle, long period)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 it's 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 it's 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 it's size when idle objects are no longer needed.static <K,V>
voidPoolUtils. prefill(KeyedObjectPool<K,V> keyedPool, java.util.Collection<? extends K> keys, int count)CalladdObject(Object)onkeyedPoolwith each key inkeysforcountnumber of times.static <K,V>
voidPoolUtils. prefill(KeyedObjectPool<K,V> keyedPool, K key, int count)CalladdObject(Object)onkeyedPoolwithkeycountnumber of times.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.pool with parameters of type KeyedObjectPool Constructor Description CheckedKeyedObjectPool(KeyedObjectPool<K,V> keyedPool, java.lang.Class<V> type)Create a new CheckedKeyedObjectPool from the given pool with given expected object type.ErodingKeyedObjectPool(KeyedObjectPool<K,V> keyedPool, float factor)Create an ErodingObjectPool wrapping the given pool using the specified erosion factor.ErodingKeyedObjectPool(KeyedObjectPool<K,V> keyedPool, PoolUtils.ErodingFactor erodingFactor)Create an ErodingObjectPool wrapping the given pool using the specified erosion factor.ErodingPerKeyKeyedObjectPool(KeyedObjectPool<K,V> keyedPool, float factor)Create a new ErordingPerKeyKeyedObjectPool decorating the given keyed pool with the specified erosion factor.KeyedObjectPoolMinIdleTimerTask(KeyedObjectPool<K,V> keyedPool, K key, int minIdle)Create a new KeyedObjecPoolMinIdleTimerTask.ObjectPoolAdaptor(KeyedObjectPool<java.lang.Object,V> keyedPool, java.lang.Object key)Create a new ObjectPoolAdaptor using the provided KeyedObjectPool and fixed key.SynchronizedKeyedObjectPool(KeyedObjectPool<K,V> keyedPool)Create a new SynchronizedKeyedObjectPool wrapping the given pool -
Uses of KeyedObjectPool in org.apache.commons.pool.impl
Classes in org.apache.commons.pool.impl that implement KeyedObjectPool Modifier and Type Class Description classGenericKeyedObjectPool<K,V>A configurableKeyedObjectPoolimplementation.classStackKeyedObjectPool<K,V>A simple,Stack-basedKeyedObjectPoolimplementation.Methods in org.apache.commons.pool.impl that return KeyedObjectPool Modifier and Type Method Description KeyedObjectPool<K,V>GenericKeyedObjectPoolFactory. createPool()Create a new GenericKeyedObjectPool with the currently configured properties.KeyedObjectPool<K,V>StackKeyedObjectPoolFactory. createPool()Create a StackKeyedObjectPool with current property settings.
-