Uses of Interface
org.apache.commons.pool.KeyedPoolableObjectFactory
Packages that use KeyedPoolableObjectFactory
Package
Description
Object pooling API.
Object pooling API implementations.
-
Uses of KeyedPoolableObjectFactory in org.apache.commons.pool
Classes in org.apache.commons.pool that implement KeyedPoolableObjectFactoryModifier and TypeClassDescriptionclass
A base implementation ofKeyedPoolableObjectFactory
.private static class
Adaptor class that turns a PoolableObjectFactory into a KeyedPoolableObjectFactory by ignoring keys.private static class
A fully synchronized KeyedPoolableObjectFactory that wraps a KeyedPoolableObjectFactory and synchronizes access to the wrapped factory methods.Fields in org.apache.commons.pool declared as KeyedPoolableObjectFactoryModifier and TypeFieldDescriptionprivate final KeyedPoolableObjectFactory
<K, V> PoolUtils.PoolableObjectFactoryAdaptor.keyedFactory
Wrapped factoryprivate final KeyedPoolableObjectFactory
<K, V> PoolUtils.SynchronizedKeyedPoolableObjectFactory.keyedFactory
Wrapped factoryMethods in org.apache.commons.pool that return KeyedPoolableObjectFactoryModifier and TypeMethodDescriptionstatic <K,
V> KeyedPoolableObjectFactory <K, V> PoolUtils.adapt
(PoolableObjectFactory<V> factory) Adapt aPoolableObjectFactory
instance to work where aKeyedPoolableObjectFactory
is needed.static <K,
V> KeyedPoolableObjectFactory <K, V> PoolUtils.synchronizedPoolableFactory
(KeyedPoolableObjectFactory<K, V> keyedFactory) Returns a synchronized (thread-safe) KeyedPoolableObjectFactory backed by the specified KeyedPoolableObjectFactory.Methods in org.apache.commons.pool with parameters of type KeyedPoolableObjectFactoryModifier and TypeMethodDescriptionstatic <V> PoolableObjectFactory
<V> PoolUtils.adapt
(KeyedPoolableObjectFactory<Object, V> keyedFactory) Adapt aKeyedPoolableObjectFactory
instance to work where aPoolableObjectFactory
is needed.static <K,
V> PoolableObjectFactory <V> PoolUtils.adapt
(KeyedPoolableObjectFactory<K, V> keyedFactory, K key) Adapt aKeyedPoolableObjectFactory
instance to work where aPoolableObjectFactory
is needed using the specifiedkey
when delegating.void
BaseKeyedObjectPool.setFactory
(KeyedPoolableObjectFactory<K, V> factory) Deprecated.to be removed in pool 2.0void
KeyedObjectPool.setFactory
(KeyedPoolableObjectFactory<K, V> factory) Deprecated.to be removed in pool 2.0void
PoolUtils.CheckedKeyedObjectPool.setFactory
(KeyedPoolableObjectFactory<K, V> factory) Deprecated.to be removed in version 2.0void
PoolUtils.ErodingKeyedObjectPool.setFactory
(KeyedPoolableObjectFactory<K, V> factory) Deprecated.to be removed in pool 2.0void
PoolUtils.KeyedObjectPoolAdaptor.setFactory
(KeyedPoolableObjectFactory<K, V> factory) Deprecated.to be removed in version 2.0void
PoolUtils.SynchronizedKeyedObjectPool.setFactory
(KeyedPoolableObjectFactory<K, V> factory) Deprecated.to be removed in pool 2.0static <K,
V> KeyedPoolableObjectFactory <K, V> PoolUtils.synchronizedPoolableFactory
(KeyedPoolableObjectFactory<K, V> keyedFactory) Returns a synchronized (thread-safe) KeyedPoolableObjectFactory backed by the specified KeyedPoolableObjectFactory.Constructors in org.apache.commons.pool with parameters of type KeyedPoolableObjectFactoryModifierConstructorDescription(package private)
PoolableObjectFactoryAdaptor
(KeyedPoolableObjectFactory<K, V> keyedFactory, K key) Create a PoolableObjectFactoryAdaptor wrapping the provided KeyedPoolableObjectFactory with the given fixed key.(package private)
SynchronizedKeyedPoolableObjectFactory
(KeyedPoolableObjectFactory<K, V> keyedFactory) Create a SynchronizedKeyedPoolableObjectFactory wrapping the given factory. -
Uses of KeyedPoolableObjectFactory in org.apache.commons.pool.impl
Fields in org.apache.commons.pool.impl declared as KeyedPoolableObjectFactoryModifier and TypeFieldDescriptionprivate KeyedPoolableObjectFactory
<K, V> GenericKeyedObjectPool._factory
protected KeyedPoolableObjectFactory
<K, V> GenericKeyedObjectPoolFactory._factory
Deprecated.to be removed in pool 2.0.protected KeyedPoolableObjectFactory
<K, V> StackKeyedObjectPool._factory
Deprecated.to be removed in pool 2.0.protected KeyedPoolableObjectFactory
<K, V> StackKeyedObjectPoolFactory._factory
Deprecated.to be removed in pool 2.0Methods in org.apache.commons.pool.impl that return KeyedPoolableObjectFactoryModifier and TypeMethodDescriptionGenericKeyedObjectPoolFactory.getFactory()
StackKeyedObjectPool.getFactory()
StackKeyedObjectPoolFactory.getFactory()
Returns the KeyedPoolableObjectFactory used by StackKeyedObjectPools created by this factoryMethods in org.apache.commons.pool.impl with parameters of type KeyedPoolableObjectFactoryModifier and TypeMethodDescriptionprivate void
GenericKeyedObjectPool.destroy
(Map<K, List<GenericKeyedObjectPool.ObjectTimestampPair<V>>> m, KeyedPoolableObjectFactory<K, V> factory) Assuming Mapinvalid input: '<'Object,Collection>, destroy all ObjectTimestampPair.value using the supplied factory. void
GenericKeyedObjectPool.setFactory
(KeyedPoolableObjectFactory<K, V> factory) Deprecated.to be removed in version 2.0void
StackKeyedObjectPool.setFactory
(KeyedPoolableObjectFactory<K, V> factory) Deprecated.to be removed in pool 2.0Constructors in org.apache.commons.pool.impl with parameters of type KeyedPoolableObjectFactoryModifierConstructorDescriptionGenericKeyedObjectPool
(KeyedPoolableObjectFactory<K, V> factory) Create a newGenericKeyedObjectPool
using the specified values.GenericKeyedObjectPool
(KeyedPoolableObjectFactory<K, V> factory, int maxActive) Create a newGenericKeyedObjectPool
using the specified values.GenericKeyedObjectPool
(KeyedPoolableObjectFactory<K, V> factory, int maxActive, byte whenExhaustedAction, long maxWait) Create a newGenericKeyedObjectPool
using the specified values.GenericKeyedObjectPool
(KeyedPoolableObjectFactory<K, V> factory, int maxActive, byte whenExhaustedAction, long maxWait, boolean testOnBorrow, boolean testOnReturn) Create a newGenericKeyedObjectPool
using the specified values.GenericKeyedObjectPool
(KeyedPoolableObjectFactory<K, V> factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle) Create a newGenericKeyedObjectPool
using the specified values.GenericKeyedObjectPool
(KeyedPoolableObjectFactory<K, V> factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, boolean testOnBorrow, boolean testOnReturn) Create a newGenericKeyedObjectPool
using the specified values.GenericKeyedObjectPool
(KeyedPoolableObjectFactory<K, V> factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, boolean testOnBorrow, boolean testOnReturn, long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis, boolean testWhileIdle) Create a newGenericKeyedObjectPool
using the specified values.GenericKeyedObjectPool
(KeyedPoolableObjectFactory<K, V> factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, int maxTotal, boolean testOnBorrow, boolean testOnReturn, long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis, boolean testWhileIdle) Create a newGenericKeyedObjectPool
using the specified values.GenericKeyedObjectPool
(KeyedPoolableObjectFactory<K, V> factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, int maxTotal, int minIdle, boolean testOnBorrow, boolean testOnReturn, long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis, boolean testWhileIdle) Create a newGenericKeyedObjectPool
using the specified values.GenericKeyedObjectPool
(KeyedPoolableObjectFactory<K, V> factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, int maxTotal, int minIdle, boolean testOnBorrow, boolean testOnReturn, long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis, boolean testWhileIdle, boolean lifo) Create a newGenericKeyedObjectPool
using the specified values.GenericKeyedObjectPool
(KeyedPoolableObjectFactory<K, V> factory, GenericKeyedObjectPool.Config config) Create a newGenericKeyedObjectPool
using the specified values.Create a new GenericKeyedObjectPoolFactory.GenericKeyedObjectPoolFactory
(KeyedPoolableObjectFactory<K, V> factory, int maxActive) Create a new GenericKeyedObjectPoolFactory.GenericKeyedObjectPoolFactory
(KeyedPoolableObjectFactory<K, V> factory, int maxActive, byte whenExhaustedAction, long maxWait) Create a new GenericKeyedObjectPoolFactory.GenericKeyedObjectPoolFactory
(KeyedPoolableObjectFactory<K, V> factory, int maxActive, byte whenExhaustedAction, long maxWait, boolean testOnBorrow, boolean testOnReturn) Create a new GenericKeyedObjectPoolFactory.GenericKeyedObjectPoolFactory
(KeyedPoolableObjectFactory<K, V> factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle) Create a new GenericKeyedObjectPoolFactory.GenericKeyedObjectPoolFactory
(KeyedPoolableObjectFactory<K, V> factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, boolean testOnBorrow, boolean testOnReturn) Create a new GenericKeyedObjectPoolFactory.GenericKeyedObjectPoolFactory
(KeyedPoolableObjectFactory<K, V> factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, boolean testOnBorrow, boolean testOnReturn, long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis, boolean testWhileIdle) Create a new GenericKeyedObjectPoolFactory.GenericKeyedObjectPoolFactory
(KeyedPoolableObjectFactory<K, V> factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, int maxTotal) Create a new GenericKeyedObjectPoolFactory.GenericKeyedObjectPoolFactory
(KeyedPoolableObjectFactory<K, V> factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, int maxTotal, boolean testOnBorrow, boolean testOnReturn, long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis, boolean testWhileIdle) Create a new GenericKeyedObjectPoolFactory.GenericKeyedObjectPoolFactory
(KeyedPoolableObjectFactory<K, V> factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, int maxTotal, int minIdle, boolean testOnBorrow, boolean testOnReturn, long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis, boolean testWhileIdle) Create a new GenericKeyedObjectPoolFactory.GenericKeyedObjectPoolFactory
(KeyedPoolableObjectFactory<K, V> factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, int maxTotal, int minIdle, boolean testOnBorrow, boolean testOnReturn, long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis, boolean testWhileIdle, boolean lifo) Create a new GenericKeyedObjectPoolFactory.GenericKeyedObjectPoolFactory
(KeyedPoolableObjectFactory<K, V> factory, GenericKeyedObjectPool.Config config) Create a new GenericKeyedObjectPoolFactory.StackKeyedObjectPool
(KeyedPoolableObjectFactory<K, V> factory) Create a newSimpleKeyedObjectPool
using the specifiedfactory
to create new instances.StackKeyedObjectPool
(KeyedPoolableObjectFactory<K, V> factory, int max) Create a newSimpleKeyedObjectPool
using the specifiedfactory
to create new instances.StackKeyedObjectPool
(KeyedPoolableObjectFactory<K, V> factory, int max, int init) Create a newSimpleKeyedObjectPool
using the specifiedfactory
to create new instances.Create a new StackKeyedObjectPoolFactory.StackKeyedObjectPoolFactory
(KeyedPoolableObjectFactory<K, V> factory, int maxSleeping) Create a new StackKeyedObjectPoolFactory.StackKeyedObjectPoolFactory
(KeyedPoolableObjectFactory<K, V> factory, int maxSleeping, int initialCapacity) Create a new StackKeyedObjectPoolFactory.