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 TypeClassDescriptionclassA base implementation ofKeyedPoolableObjectFactory.private static classAdaptor class that turns a PoolableObjectFactory into a KeyedPoolableObjectFactory by ignoring keys.private static classA 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.keyedFactoryWrapped factoryprivate final KeyedPoolableObjectFactory<K, V> PoolUtils.SynchronizedKeyedPoolableObjectFactory.keyedFactoryWrapped factoryMethods in org.apache.commons.pool that return KeyedPoolableObjectFactoryModifier and TypeMethodDescriptionstatic <K,V> KeyedPoolableObjectFactory <K, V> PoolUtils.adapt(PoolableObjectFactory<V> factory) Adapt aPoolableObjectFactoryinstance to work where aKeyedPoolableObjectFactoryis 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 aKeyedPoolableObjectFactoryinstance to work where aPoolableObjectFactoryis needed.static <K,V> PoolableObjectFactory <V> PoolUtils.adapt(KeyedPoolableObjectFactory<K, V> keyedFactory, K key) Adapt aKeyedPoolableObjectFactoryinstance to work where aPoolableObjectFactoryis needed using the specifiedkeywhen delegating.voidBaseKeyedObjectPool.setFactory(KeyedPoolableObjectFactory<K, V> factory) Deprecated.to be removed in pool 2.0voidKeyedObjectPool.setFactory(KeyedPoolableObjectFactory<K, V> factory) Deprecated.to be removed in pool 2.0voidPoolUtils.CheckedKeyedObjectPool.setFactory(KeyedPoolableObjectFactory<K, V> factory) Deprecated.to be removed in version 2.0voidPoolUtils.ErodingKeyedObjectPool.setFactory(KeyedPoolableObjectFactory<K, V> factory) Deprecated.to be removed in pool 2.0voidPoolUtils.KeyedObjectPoolAdaptor.setFactory(KeyedPoolableObjectFactory<K, V> factory) Deprecated.to be removed in version 2.0voidPoolUtils.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._factoryprotected KeyedPoolableObjectFactory<K, V> GenericKeyedObjectPoolFactory._factoryDeprecated.to be removed in pool 2.0.protected KeyedPoolableObjectFactory<K, V> StackKeyedObjectPool._factoryDeprecated.to be removed in pool 2.0.protected KeyedPoolableObjectFactory<K, V> StackKeyedObjectPoolFactory._factoryDeprecated.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 voidGenericKeyedObjectPool.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. voidGenericKeyedObjectPool.setFactory(KeyedPoolableObjectFactory<K, V> factory) Deprecated.to be removed in version 2.0voidStackKeyedObjectPool.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 newGenericKeyedObjectPoolusing the specified values.GenericKeyedObjectPool(KeyedPoolableObjectFactory<K, V> factory, int maxActive) Create a newGenericKeyedObjectPoolusing the specified values.GenericKeyedObjectPool(KeyedPoolableObjectFactory<K, V> factory, int maxActive, byte whenExhaustedAction, long maxWait) Create a newGenericKeyedObjectPoolusing the specified values.GenericKeyedObjectPool(KeyedPoolableObjectFactory<K, V> factory, int maxActive, byte whenExhaustedAction, long maxWait, boolean testOnBorrow, boolean testOnReturn) Create a newGenericKeyedObjectPoolusing the specified values.GenericKeyedObjectPool(KeyedPoolableObjectFactory<K, V> factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle) Create a newGenericKeyedObjectPoolusing the specified values.GenericKeyedObjectPool(KeyedPoolableObjectFactory<K, V> factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, boolean testOnBorrow, boolean testOnReturn) Create a newGenericKeyedObjectPoolusing 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 newGenericKeyedObjectPoolusing 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 newGenericKeyedObjectPoolusing 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 newGenericKeyedObjectPoolusing 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 newGenericKeyedObjectPoolusing the specified values.GenericKeyedObjectPool(KeyedPoolableObjectFactory<K, V> factory, GenericKeyedObjectPool.Config config) Create a newGenericKeyedObjectPoolusing 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 newSimpleKeyedObjectPoolusing the specifiedfactoryto create new instances.StackKeyedObjectPool(KeyedPoolableObjectFactory<K, V> factory, int max) Create a newSimpleKeyedObjectPoolusing the specifiedfactoryto create new instances.StackKeyedObjectPool(KeyedPoolableObjectFactory<K, V> factory, int max, int init) Create a newSimpleKeyedObjectPoolusing the specifiedfactoryto 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.