Index

A B C D E F G H I J K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values

A

ABANDONED - Enum constant in enum org.apache.commons.pool2.DestroyMode
Destroy abandoned object.
ABANDONED - Enum constant in enum org.apache.commons.pool2.PooledObjectState
Deemed abandoned, to be invalidated.
abandonedConfig - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Additional configuration properties for abandoned object tracking.
AbandonedConfig - Class in org.apache.commons.pool2.impl
Configuration settings for abandoned object removal.
AbandonedConfig() - Constructor for class org.apache.commons.pool2.impl.AbandonedConfig
Creates a new instance.
activateObject(K, PooledObject<V>) - Method in class org.apache.commons.pool2.BaseKeyedPooledObjectFactory
Reinitializes an instance to be returned by the pool.
activateObject(K, PooledObject<V>) - Method in interface org.apache.commons.pool2.KeyedPooledObjectFactory
Reinitializes an instance to be returned by the pool.
activateObject(PooledObject<T>) - Method in class org.apache.commons.pool2.BasePooledObjectFactory
No-op.
activateObject(PooledObject<T>) - Method in interface org.apache.commons.pool2.PooledObjectFactory
Reinitializes an instance to be returned by the pool.
addObject() - Method in class org.apache.commons.pool2.BaseObjectPool
Not supported in this base implementation.
addObject() - Method in class org.apache.commons.pool2.impl.GenericObjectPool
Creates an object, and place it into the pool.
addObject() - Method in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
Creates an object, and places it into the pool.
addObject() - Method in interface org.apache.commons.pool2.ObjectPool
Creates an object using the factory or other implementation dependent mechanism, passivate it, and then place it in the idle object pool.
addObject() - Method in class org.apache.commons.pool2.proxy.ProxiedObjectPool
 
addObject(K) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Create an object using the factory, passivate it, and then place it in the idle object pool.
addObject(K) - Method in interface org.apache.commons.pool2.KeyedObjectPool
Creates an object using the factory or other implementation dependent mechanism, passivate it, and then place it in the idle object pool.
addObject(K) - Method in class org.apache.commons.pool2.proxy.ProxiedKeyedObjectPool
 
addObjects(int) - Method in interface org.apache.commons.pool2.ObjectPool
Calls ObjectPool.addObject() count number of times.
addObjects(Collection<K>, int) - Method in interface org.apache.commons.pool2.KeyedObjectPool
Calls KeyedObjectPool.addObject(Object) with each key in keys for count number of times.
addObjects(K, int) - Method in interface org.apache.commons.pool2.KeyedObjectPool
Calls KeyedObjectPool.addObject(Object) key count number of times.
allocate() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
Allocates the object.
allocate() - Method in interface org.apache.commons.pool2.PooledObject
Allocates the object.
ALLOCATED - Enum constant in enum org.apache.commons.pool2.PooledObjectState
In use.
assertOpen() - Method in class org.apache.commons.pool2.BaseObjectPool
Throws an IllegalStateException when this pool has been closed.

B

BaseGenericObjectPool<T> - Class in org.apache.commons.pool2.impl
Base class that provides common functionality for GenericObjectPool and GenericKeyedObjectPool.
BaseGenericObjectPool(BaseObjectPoolConfig<T>, String, String) - Constructor for class org.apache.commons.pool2.impl.BaseGenericObjectPool
Handles JMX registration (if required) and the initialization required for monitoring.
BaseKeyedPooledObjectFactory<K,V> - Class in org.apache.commons.pool2
A base implementation of KeyedPooledObjectFactory.
BaseKeyedPooledObjectFactory() - Constructor for class org.apache.commons.pool2.BaseKeyedPooledObjectFactory
 
BaseObject - Class in org.apache.commons.pool2
A base class for common functionality.
BaseObject() - Constructor for class org.apache.commons.pool2.BaseObject
 
BaseObjectPool<T> - Class in org.apache.commons.pool2
A simple base implementation of ObjectPool.
BaseObjectPool() - Constructor for class org.apache.commons.pool2.BaseObjectPool
 
BaseObjectPoolConfig<T> - Class in org.apache.commons.pool2.impl
Provides the implementation for the common attributes shared by the sub-classes.
BaseObjectPoolConfig() - Constructor for class org.apache.commons.pool2.impl.BaseObjectPoolConfig
 
BasePooledObjectFactory<T> - Class in org.apache.commons.pool2
A base implementation of PoolableObjectFactory.
BasePooledObjectFactory() - Constructor for class org.apache.commons.pool2.BasePooledObjectFactory
 
borrowObject() - Method in class org.apache.commons.pool2.BaseObjectPool
 
borrowObject() - Method in class org.apache.commons.pool2.impl.GenericObjectPool
borrowObject() - Method in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
Borrows an object from the pool.
borrowObject() - Method in interface org.apache.commons.pool2.ObjectPool
Borrows an instance from this pool.
borrowObject() - Method in class org.apache.commons.pool2.proxy.ProxiedObjectPool
 
borrowObject(long) - Method in class org.apache.commons.pool2.impl.GenericObjectPool
Borrows an object from the pool using the specific waiting time which only applies if BaseGenericObjectPool.getBlockWhenExhausted() is true.
borrowObject(Duration) - Method in class org.apache.commons.pool2.impl.GenericObjectPool
Borrows an object from the pool using the specific waiting time which only applies if BaseGenericObjectPool.getBlockWhenExhausted() is true.
borrowObject(K) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
borrowObject(K) - Method in interface org.apache.commons.pool2.KeyedObjectPool
Borrows an instance from this pool for the specified key.
borrowObject(K) - Method in class org.apache.commons.pool2.proxy.ProxiedKeyedObjectPool
 
borrowObject(K, long) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Borrows an object from the sub-pool associated with the given key using the specified waiting time which only applies if BaseGenericObjectPool.getBlockWhenExhausted() is true.

C

CallStack - Interface in org.apache.commons.pool2.impl
Strategy for obtaining and printing the current call stack.
CallStackUtils - Class in org.apache.commons.pool2.impl
Utility methods for CallStack.
CglibProxySource<T> - Class in org.apache.commons.pool2.proxy
Provides proxy objects using CGLib.
CglibProxySource(Class<? extends T>) - Constructor for class org.apache.commons.pool2.proxy.CglibProxySource
Constructs a new proxy source for the given class.
checkMinIdle(KeyedObjectPool<K, V>, Collection<K>, int, long) - Static method in class org.apache.commons.pool2.PoolUtils
Periodically check the idle object count for each key in the Collection keys in the keyedPool.
checkMinIdle(KeyedObjectPool<K, V>, K, int, long) - Static method in class org.apache.commons.pool2.PoolUtils
Periodically check the idle object count for the key in the keyedPool.
checkMinIdle(ObjectPool<T>, int, long) - Static method in class org.apache.commons.pool2.PoolUtils
Periodically check the idle object count for the pool.
checkRethrow(Throwable) - Static method in class org.apache.commons.pool2.PoolUtils
Should the supplied Throwable be re-thrown (eg if it is an instance of one of the Throwables that should never be swallowed).
clear() - Method in class org.apache.commons.pool2.BaseObjectPool
Not supported in this base implementation.
clear() - Method in interface org.apache.commons.pool2.impl.CallStack
Clears the current stack trace snapshot.
clear() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Clears any objects sitting idle in the pool by removing them from the idle instance sub-pools and then invoking the configured PoolableObjectFactory's KeyedPooledObjectFactory.destroyObject(Object, PooledObject) method on each idle instance.
clear() - Method in class org.apache.commons.pool2.impl.GenericObjectPool
Clears any objects sitting idle in the pool by removing them from the idle instance pool and then invoking the configured PooledObjectFactory.destroyObject(PooledObject) method on each idle instance.
clear() - Method in class org.apache.commons.pool2.impl.NoOpCallStack
 
clear() - Method in class org.apache.commons.pool2.impl.SecurityManagerCallStack
 
clear() - Method in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
Clears any objects sitting idle in the pool.
clear() - Method in class org.apache.commons.pool2.impl.ThrowableCallStack
 
clear() - Method in interface org.apache.commons.pool2.KeyedObjectPool
Clears the pool, removing all pooled instances (optional operation).
clear() - Method in interface org.apache.commons.pool2.ObjectPool
Clears any objects sitting idle in the pool, releasing any associated resources (optional operation).
clear() - Method in class org.apache.commons.pool2.proxy.ProxiedKeyedObjectPool
 
clear() - Method in class org.apache.commons.pool2.proxy.ProxiedObjectPool
 
clear(K) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Clears the specified sub-pool, removing all pooled instances corresponding to the given key.
clear(K) - Method in interface org.apache.commons.pool2.KeyedObjectPool
Clears the specified pool, removing all pooled instances corresponding to the given key (optional operation).
clear(K) - Method in class org.apache.commons.pool2.proxy.ProxiedKeyedObjectPool
 
clear(K, boolean) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Clears the specified sub-pool, removing all pooled instances corresponding to the given key.
clearOldest() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Clears oldest 15% of objects in pool.
clone() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig
 
clone() - Method in class org.apache.commons.pool2.impl.GenericObjectPoolConfig
 
close() - Method in class org.apache.commons.pool2.BaseObjectPool
Closes this pool, and free any resources associated with it.
close() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Closes the pool, destroys the remaining idle objects and, if registered in JMX, deregisters it.
close() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Closes the keyed object pool.
close() - Method in class org.apache.commons.pool2.impl.GenericObjectPool
Closes the pool.
close() - Method in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
Closes this pool, and frees any resources associated with it.
close() - Method in interface org.apache.commons.pool2.KeyedObjectPool
Closes this pool, and free any resources associated with it.
close() - Method in interface org.apache.commons.pool2.ObjectPool
Closes this pool, and free any resources associated with it.
close() - Method in class org.apache.commons.pool2.proxy.ProxiedKeyedObjectPool
 
close() - Method in class org.apache.commons.pool2.proxy.ProxiedObjectPool
 
compareTo(PooledObject<T>) - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
 
compareTo(PooledObject<T>) - Method in interface org.apache.commons.pool2.PooledObject
Orders instances based on idle time - i.e.
copy(AbandonedConfig) - Static method in class org.apache.commons.pool2.impl.AbandonedConfig
Creates a new instance with values from the given instance.
create() - Method in class org.apache.commons.pool2.BasePooledObjectFactory
Creates an object instance, to be wrapped in a PooledObject.
create(K) - Method in class org.apache.commons.pool2.BaseKeyedPooledObjectFactory
Creates an instance that can be served by the pool.
createProxy(T, UsageTracking<T>) - Method in class org.apache.commons.pool2.proxy.CglibProxySource
 
createProxy(T, UsageTracking<T>) - Method in class org.apache.commons.pool2.proxy.JdkProxySource
 

D

deallocate() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
Deallocates the object and sets it IDLE if it is currently ALLOCATED or RETURNING.
deallocate() - Method in interface org.apache.commons.pool2.PooledObject
Deallocates the object and sets it IDLE if it is currently ALLOCATED.
DEFAULT_BLOCK_WHEN_EXHAUSTED - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
The default value for the blockWhenExhausted configuration attribute.
DEFAULT_DURATION_BETWEEN_EVICTION_RUNS - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
The default value for the timeBetweenEvictionRuns configuration attribute.
DEFAULT_EVICTION_POLICY_CLASS_NAME - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
The default value for the evictionPolicyClassName configuration attribute.
DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
The default value for evictorShutdownTimeout configuration attribute.
DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT_MILLIS - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
DEFAULT_FAIRNESS - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
The default value for the fairness configuration attribute.
DEFAULT_JMX_ENABLE - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
The default value for enabling JMX for pools created with a configuration instance.
DEFAULT_JMX_NAME_BASE - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
The default value for the base name to use to name JMX enabled pools created with a configuration instance.
DEFAULT_JMX_NAME_PREFIX - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
The default value for the prefix used to name JMX enabled pools created with a configuration instance.
DEFAULT_LIFO - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
The default value for the lifo configuration attribute.
DEFAULT_MAX_IDLE - Static variable in class org.apache.commons.pool2.impl.GenericObjectPoolConfig
The default value for the maxIdle configuration attribute.
DEFAULT_MAX_IDLE_PER_KEY - Static variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig
The default value for the maxIdlePerKey configuration attribute.
DEFAULT_MAX_TOTAL - Static variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig
The default value for the maxTotal configuration attribute.
DEFAULT_MAX_TOTAL - Static variable in class org.apache.commons.pool2.impl.GenericObjectPoolConfig
The default value for the maxTotal configuration attribute.
DEFAULT_MAX_TOTAL_PER_KEY - Static variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig
The default value for the maxTotalPerKey configuration attribute.
DEFAULT_MAX_WAIT - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
The default value for the maxWait configuration attribute.
DEFAULT_MAX_WAIT_MILLIS - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
DEFAULT_MIN_EVICTABLE_IDLE_DURATION - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
The default value for the minEvictableIdleDuration configuration attribute.
DEFAULT_MIN_EVICTABLE_IDLE_TIME - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
DEFAULT_MIN_IDLE - Static variable in class org.apache.commons.pool2.impl.GenericObjectPoolConfig
The default value for the minIdle configuration attribute.
DEFAULT_MIN_IDLE_PER_KEY - Static variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig
The default value for the minIdlePerKey configuration attribute.
DEFAULT_NUM_TESTS_PER_EVICTION_RUN - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
The default value for the numTestsPerEvictionRun configuration attribute.
DEFAULT_SOFT_MIN_EVICTABLE_IDLE_DURATION - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
The default value for the softMinEvictableIdleTime configuration attribute.
DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
DEFAULT_TEST_ON_BORROW - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
The default value for the testOnBorrow configuration attribute.
DEFAULT_TEST_ON_CREATE - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
The default value for the testOnCreate configuration attribute.
DEFAULT_TEST_ON_RETURN - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
The default value for the testOnReturn configuration attribute.
DEFAULT_TEST_WHILE_IDLE - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
The default value for the testWhileIdle configuration attribute.
DEFAULT_TIME_BETWEEN_EVICTION_RUNS - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
DefaultEvictionPolicy<T> - Class in org.apache.commons.pool2.impl
Provides the default implementation of EvictionPolicy used by the pools.
DefaultEvictionPolicy() - Constructor for class org.apache.commons.pool2.impl.DefaultEvictionPolicy
 
DefaultPooledObject<T> - Class in org.apache.commons.pool2.impl
This wrapper is used to track the additional information, such as state, for the pooled objects.
DefaultPooledObject(T) - Constructor for class org.apache.commons.pool2.impl.DefaultPooledObject
Creates a new instance that wraps the provided object so that the pool can track the state of the pooled object.
DefaultPooledObjectInfo - Class in org.apache.commons.pool2.impl
Implementation of object that is used to provide information on pooled objects via JMX.
DefaultPooledObjectInfo(PooledObject<?>) - Constructor for class org.apache.commons.pool2.impl.DefaultPooledObjectInfo
Constructs a new instance for the given pooled object.
DefaultPooledObjectInfoMBean - Interface in org.apache.commons.pool2.impl
The interface that defines the information about pooled objects that will be exposed via JMX.
DestroyMode - Enum in org.apache.commons.pool2
Destroy context provided to object factories via destroyObject and invalidateObject methods.
destroyObject(K, PooledObject<V>) - Method in class org.apache.commons.pool2.BaseKeyedPooledObjectFactory
Destroys an instance no longer needed by the pool.
destroyObject(K, PooledObject<V>) - Method in interface org.apache.commons.pool2.KeyedPooledObjectFactory
Destroys an instance no longer needed by the pool.
destroyObject(K, PooledObject<V>, DestroyMode) - Method in interface org.apache.commons.pool2.KeyedPooledObjectFactory
Destroys an instance no longer needed by the pool, using the provided DestroyMode.
destroyObject(PooledObject<T>) - Method in class org.apache.commons.pool2.BasePooledObjectFactory
No-op.
destroyObject(PooledObject<T>) - Method in interface org.apache.commons.pool2.PooledObjectFactory
Destroys an instance no longer needed by the pool, using the default (NORMAL) DestroyMode.
destroyObject(PooledObject<T>, DestroyMode) - Method in interface org.apache.commons.pool2.PooledObjectFactory
Destroys an instance no longer needed by the pool, using the provided DestroyMode.

E

endEvictionTest(Deque<PooledObject<T>>) - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
 
endEvictionTest(Deque<PooledObject<T>>) - Method in interface org.apache.commons.pool2.PooledObject
Notifies the object that the eviction test has ended.
equals(Object) - Method in interface org.apache.commons.pool2.PooledObject
 
erodingPool(KeyedObjectPool<K, V>) - Static method in class org.apache.commons.pool2.PoolUtils
Returns a pool that adaptively decreases its size when idle objects are no longer needed.
erodingPool(KeyedObjectPool<K, V>, float) - Static method in class org.apache.commons.pool2.PoolUtils
Returns a pool that adaptively decreases its size when idle objects are no longer needed.
erodingPool(KeyedObjectPool<K, V>, float, boolean) - Static method in class org.apache.commons.pool2.PoolUtils
Returns a pool that adaptively decreases its size when idle objects are no longer needed.
erodingPool(ObjectPool<T>) - Static method in class org.apache.commons.pool2.PoolUtils
Returns a pool that adaptively decreases its size when idle objects are no longer needed.
erodingPool(ObjectPool<T>, float) - Static method in class org.apache.commons.pool2.PoolUtils
Returns a pool that adaptively decreases its size when idle objects are no longer needed.
evict() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Perform numTests idle object eviction tests, evicting examined objects that meet the criteria for eviction.
evict() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Perform numTests idle object eviction tests, evicting examined objects that meet the criteria for eviction.
evict() - Method in class org.apache.commons.pool2.impl.GenericObjectPool
Perform numTests idle object eviction tests, evicting examined objects that meet the criteria for eviction.
evict(EvictionConfig, PooledObject<T>, int) - Method in class org.apache.commons.pool2.impl.DefaultEvictionPolicy
 
evict(EvictionConfig, PooledObject<T>, int) - Method in interface org.apache.commons.pool2.impl.EvictionPolicy
Tests if an idle object in the pool should be evicted or not.
EVICTION - Enum constant in enum org.apache.commons.pool2.PooledObjectState
In the queue, currently being tested for possible eviction.
EVICTION_RETURN_TO_HEAD - Enum constant in enum org.apache.commons.pool2.PooledObjectState
Not in the queue, currently being tested for possible eviction.
EvictionConfig - Class in org.apache.commons.pool2.impl
This class is used by pool implementations to pass configuration information to EvictionPolicy instances.
EvictionConfig(long, long, int) - Constructor for class org.apache.commons.pool2.impl.EvictionConfig
EvictionConfig(Duration, Duration, int) - Constructor for class org.apache.commons.pool2.impl.EvictionConfig
Creates a new eviction configuration with the specified parameters.
EvictionPolicy<T> - Interface in org.apache.commons.pool2.impl
To provide a custom eviction policy (i.e.

F

fillInStackTrace() - Method in interface org.apache.commons.pool2.impl.CallStack
Takes a snapshot of the current call stack.
fillInStackTrace() - Method in class org.apache.commons.pool2.impl.NoOpCallStack
 
fillInStackTrace() - Method in class org.apache.commons.pool2.impl.SecurityManagerCallStack
 
fillInStackTrace() - Method in class org.apache.commons.pool2.impl.ThrowableCallStack
 

G

GenericKeyedObjectPool<K,T> - Class in org.apache.commons.pool2.impl
A configurable KeyedObjectPool implementation.
GenericKeyedObjectPool(KeyedPooledObjectFactory<K, T>) - Constructor for class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Constructs a new GenericKeyedObjectPool using defaults from GenericKeyedObjectPoolConfig.
GenericKeyedObjectPool(KeyedPooledObjectFactory<K, T>, GenericKeyedObjectPoolConfig<T>) - Constructor for class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Constructs a new GenericKeyedObjectPool using a specific configuration.
GenericKeyedObjectPool(KeyedPooledObjectFactory<K, T>, GenericKeyedObjectPoolConfig<T>, AbandonedConfig) - Constructor for class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Creates a new GenericKeyedObjectPool that tracks and destroys objects that are checked out, but never returned to the pool.
GenericKeyedObjectPoolConfig<T> - Class in org.apache.commons.pool2.impl
A simple structure encapsulating the configuration for a GenericKeyedObjectPool.
GenericKeyedObjectPoolConfig() - Constructor for class org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig
Constructs a new configuration with default settings.
GenericKeyedObjectPoolMXBean<K> - Interface in org.apache.commons.pool2.impl
Defines the methods that will be made available via JMX.
GenericObjectPool<T> - Class in org.apache.commons.pool2.impl
A configurable ObjectPool implementation.
GenericObjectPool(PooledObjectFactory<T>) - Constructor for class org.apache.commons.pool2.impl.GenericObjectPool
Creates a new GenericObjectPool using defaults from GenericObjectPoolConfig.
GenericObjectPool(PooledObjectFactory<T>, GenericObjectPoolConfig<T>) - Constructor for class org.apache.commons.pool2.impl.GenericObjectPool
Creates a new GenericObjectPool using a specific configuration.
GenericObjectPool(PooledObjectFactory<T>, GenericObjectPoolConfig<T>, AbandonedConfig) - Constructor for class org.apache.commons.pool2.impl.GenericObjectPool
Creates a new GenericObjectPool that tracks and destroys objects that are checked out, but never returned to the pool.
GenericObjectPoolConfig<T> - Class in org.apache.commons.pool2.impl
A simple structure encapsulating the configuration for a GenericObjectPool.
GenericObjectPoolConfig() - Constructor for class org.apache.commons.pool2.impl.GenericObjectPoolConfig
 
GenericObjectPoolMXBean - Interface in org.apache.commons.pool2.impl
Defines the methods that will be made available via JMX.
getActiveDuration() - Method in interface org.apache.commons.pool2.PooledObject
Gets the amount of time this object last spent in the active state (it may still be active in which case subsequent calls will return an increased value).
getActiveTime() - Method in interface org.apache.commons.pool2.PooledObject
getActiveTimeMillis() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
 
getActiveTimeMillis() - Method in interface org.apache.commons.pool2.PooledObject
Deprecated.
Use PooledObject.getActiveTime() which offers the best precision.
getBlockWhenExhausted() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets whether to block when the borrowObject() method is invoked when the pool is exhausted (the maximum number of "active" objects has been reached).
getBlockWhenExhausted() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Gets the value for the blockWhenExhausted configuration attribute for pools created with this configuration instance.
getBlockWhenExhausted() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getBlockWhenExhausted() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getBorrowedCount() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the total number of objects successfully borrowed from this pool over the lifetime of the pool.
getBorrowedCount() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
Gets the number of times this object has been borrowed.
getBorrowedCount() - Method in class org.apache.commons.pool2.impl.DefaultPooledObjectInfo
 
getBorrowedCount() - Method in interface org.apache.commons.pool2.impl.DefaultPooledObjectInfoMBean
Gets the number of times this object has been borrowed.
getBorrowedCount() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getBorrowedCount() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getBorrowedCount() - Method in interface org.apache.commons.pool2.PooledObject
Gets the number of times this object has been borrowed.
getCreatedCount() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the total number of objects created for this pool over the lifetime of the pool.
getCreatedCount() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getCreatedCount() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getCreateInstant() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
 
getCreateInstant() - Method in interface org.apache.commons.pool2.PooledObject
Gets the time (using the same basis as Instant.now()) that this object was created.
getCreateTime() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
 
getCreateTime() - Method in class org.apache.commons.pool2.impl.DefaultPooledObjectInfo
 
getCreateTime() - Method in interface org.apache.commons.pool2.impl.DefaultPooledObjectInfoMBean
Gets the time (using the same basis as Clock.instant()) that pooled object was created.
getCreateTime() - Method in interface org.apache.commons.pool2.PooledObject
Deprecated.
Use PooledObject.getCreateInstant() which offers the best precision.
getCreateTimeFormatted() - Method in class org.apache.commons.pool2.impl.DefaultPooledObjectInfo
 
getCreateTimeFormatted() - Method in interface org.apache.commons.pool2.impl.DefaultPooledObjectInfoMBean
Gets the time that pooled object was created.
getCreationStackTrace() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the stack trace for the call that created this pool.
getCreationStackTrace() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getCreationStackTrace() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getDestroyedByBorrowValidationCount() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the total number of objects destroyed by this pool as a result of failing validation during borrowObject() over the lifetime of the pool.
getDestroyedByBorrowValidationCount() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getDestroyedByBorrowValidationCount() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getDestroyedByEvictorCount() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the total number of objects destroyed by the evictor associated with this pool over the lifetime of the pool.
getDestroyedByEvictorCount() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getDestroyedByEvictorCount() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getDestroyedCount() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the total number of objects destroyed by this pool over the lifetime of the pool.
getDestroyedCount() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getDestroyedCount() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getDurationBetweenEvictionRuns() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the duration to sleep between runs of the idle object evictor thread.
getDurationBetweenEvictionRuns() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Gets the value for the timeBetweenEvictionRuns configuration attribute for pools created with this configuration instance.
getEvictionPolicy() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the EvictionPolicy defined for this pool.
getEvictionPolicy() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Gets the value for the evictionPolicyClass configuration attribute for pools created with this configuration instance.
getEvictionPolicyClassName() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the name of the EvictionPolicy implementation that is used by this pool.
getEvictionPolicyClassName() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Gets the value for the evictionPolicyClassName configuration attribute for pools created with this configuration instance.
getEvictorShutdownTimeout() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
getEvictorShutdownTimeout() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
getEvictorShutdownTimeoutDuration() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the timeout that will be used when waiting for the Evictor to shutdown if this pool is closed and it is the only pool still using the the value for the Evictor.
getEvictorShutdownTimeoutDuration() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Gets the value for the evictorShutdownTimeout configuration attribute for pools created with this configuration instance.
getEvictorShutdownTimeoutMillis() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
getEvictorShutdownTimeoutMillis() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
getFactory() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Gets a reference to the factory used to create, destroy and validate the objects used by this pool.
getFactory() - Method in class org.apache.commons.pool2.impl.GenericObjectPool
Gets a reference to the factory used to create, destroy and validate the objects used by this pool.
getFactory() - Method in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
Gets the PooledObjectFactory used by this pool to create and manage object instances.
getFactoryType() - Method in class org.apache.commons.pool2.impl.GenericObjectPool
Gets the type - including the specific type rather than the generic - of the factory.
getFactoryType() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getFairness() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets whether or not the pool serves threads waiting to borrow objects fairly.
getFairness() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Gets the value for the fairness configuration attribute for pools created with this configuration instance.
getFairness() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getFairness() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getFullDuration() - Method in interface org.apache.commons.pool2.PooledObject
Gets the duration since this object was created (using Instant.now()).
getIdleDuration() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
 
getIdleDuration() - Method in interface org.apache.commons.pool2.PooledObject
Gets the amount of time that this object last spend in the idle state (it may still be idle in which case subsequent calls will return an increased value).
getIdleEvictDuration() - Method in class org.apache.commons.pool2.impl.EvictionConfig
Gets the idleEvictTime for this eviction configuration instance.
getIdleEvictTime() - Method in class org.apache.commons.pool2.impl.EvictionConfig
getIdleEvictTimeDuration() - Method in class org.apache.commons.pool2.impl.EvictionConfig
getIdleSoftEvictDuration() - Method in class org.apache.commons.pool2.impl.EvictionConfig
Gets the idleSoftEvictTime for this eviction configuration instance.
getIdleSoftEvictTime() - Method in class org.apache.commons.pool2.impl.EvictionConfig
getIdleSoftEvictTimeDuration() - Method in class org.apache.commons.pool2.impl.EvictionConfig
getIdleTime() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
 
getIdleTime() - Method in interface org.apache.commons.pool2.PooledObject
getIdleTimeMillis() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
 
getIdleTimeMillis() - Method in interface org.apache.commons.pool2.PooledObject
Deprecated.
Use PooledObject.getIdleTime() which offers the best precision.
getJmxEnabled() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Gets the value of the flag that determines if JMX will be enabled for pools created with this configuration instance.
getJmxName() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the name under which the pool has been registered with the platform MBean server or null if the pool has not been registered.
getJmxNameBase() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Gets the value of the JMX name base that will be used as part of the name assigned to JMX enabled pools created with this configuration instance.
getJmxNamePrefix() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Gets the value of the JMX name prefix that will be used as part of the name assigned to JMX enabled pools created with this configuration instance.
getKeys() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Gets a copy of the pool key list.
getKeys() - Method in interface org.apache.commons.pool2.KeyedObjectPool
Gets a copy of the pool key list.
getKeys() - Method in class org.apache.commons.pool2.proxy.ProxiedKeyedObjectPool
Gets a copy of the pool key list.
getLastBorrowInstant() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
 
getLastBorrowInstant() - Method in interface org.apache.commons.pool2.PooledObject
Gets the time the wrapped object was last borrowed.
getLastBorrowTime() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
 
getLastBorrowTime() - Method in class org.apache.commons.pool2.impl.DefaultPooledObjectInfo
 
getLastBorrowTime() - Method in interface org.apache.commons.pool2.impl.DefaultPooledObjectInfoMBean
Gets the time (using the same basis as Clock.instant()) the polled object was last borrowed.
getLastBorrowTime() - Method in interface org.apache.commons.pool2.PooledObject
Deprecated.
Use PooledObject.getLastBorrowInstant() which offers the best precision.
getLastBorrowTimeFormatted() - Method in class org.apache.commons.pool2.impl.DefaultPooledObjectInfo
 
getLastBorrowTimeFormatted() - Method in interface org.apache.commons.pool2.impl.DefaultPooledObjectInfoMBean
Gets the time that pooled object was last borrowed.
getLastBorrowTrace() - Method in class org.apache.commons.pool2.impl.DefaultPooledObjectInfo
 
getLastBorrowTrace() - Method in interface org.apache.commons.pool2.impl.DefaultPooledObjectInfoMBean
Gets the stack trace recorded when the pooled object was last borrowed.
getLastReturnInstant() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
 
getLastReturnInstant() - Method in interface org.apache.commons.pool2.PooledObject
Gets the time the wrapped object was last borrowed.
getLastReturnTime() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
 
getLastReturnTime() - Method in class org.apache.commons.pool2.impl.DefaultPooledObjectInfo
 
getLastReturnTime() - Method in interface org.apache.commons.pool2.impl.DefaultPooledObjectInfoMBean
Gets the time (using the same basis as Clock.instant())the wrapped object was last returned.
getLastReturnTime() - Method in interface org.apache.commons.pool2.PooledObject
Deprecated.
Use PooledObject.getLastReturnInstant() which offers the best precision.
getLastReturnTimeFormatted() - Method in class org.apache.commons.pool2.impl.DefaultPooledObjectInfo
 
getLastReturnTimeFormatted() - Method in interface org.apache.commons.pool2.impl.DefaultPooledObjectInfoMBean
Gets the time that pooled object was last returned.
getLastUsed() - Method in interface org.apache.commons.pool2.TrackedUse
Deprecated.
Use TrackedUse.getLastUsedInstant() which offers the best precision.
getLastUsedInstant() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
Gets an estimate of the last time this object was used.
getLastUsedInstant() - Method in interface org.apache.commons.pool2.PooledObject
Gets an estimate of the last time this object was used.
getLastUsedInstant() - Method in interface org.apache.commons.pool2.TrackedUse
Gets the last Instant this object was used.
getLastUsedTime() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
Gets an estimate of the last time this object was used.
getLastUsedTime() - Method in interface org.apache.commons.pool2.PooledObject
Deprecated.
Use PooledObject.getLastUsedInstant() which offers the best precision.
getLifo() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets whether the pool has LIFO (last in, first out) behavior with respect to idle objects - always returning the most recently used object from the pool, or as a FIFO (first in, first out) queue, where the pool always returns the oldest object in the idle object pool.
getLifo() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Gets the value for the lifo configuration attribute for pools created with this configuration instance.
getLifo() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getLifo() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getLogAbandoned() - Method in class org.apache.commons.pool2.impl.AbandonedConfig
Flag to log stack traces for application code which abandoned an object.
getLogAbandoned() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets whether this pool identifies and logs any abandoned objects.
getLogAbandoned() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getLogAbandoned() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getLogWriter() - Method in class org.apache.commons.pool2.impl.AbandonedConfig
Gets the log writer being used by this configuration to log information on abandoned objects.
getMaxBorrowWaitDuration() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the maximum time a thread has waited to borrow objects from the pool.
getMaxBorrowWaitTimeMillis() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
getMaxBorrowWaitTimeMillis() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getMaxBorrowWaitTimeMillis() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getMaxIdle() - Method in class org.apache.commons.pool2.impl.GenericObjectPool
Gets the cap on the number of "idle" instances in the pool.
getMaxIdle() - Method in class org.apache.commons.pool2.impl.GenericObjectPoolConfig
Get the value for the maxIdle configuration attribute for pools created with this configuration instance.
getMaxIdle() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getMaxIdlePerKey() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Gets the cap on the number of "idle" instances per key in the pool.
getMaxIdlePerKey() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig
Get the value for the maxIdlePerKey configuration attribute for pools created with this configuration instance.
getMaxIdlePerKey() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getMaxTotal() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the maximum number of objects that can be allocated by the pool (checked out to clients, or idle awaiting checkout) at a given time.
getMaxTotal() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig
Get the value for the maxTotal configuration attribute for pools created with this configuration instance.
getMaxTotal() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getMaxTotal() - Method in class org.apache.commons.pool2.impl.GenericObjectPoolConfig
Get the value for the maxTotal configuration attribute for pools created with this configuration instance.
getMaxTotal() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getMaxTotalPerKey() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Gets the limit on the number of object instances allocated by the pool (checked out or idle), per key.
getMaxTotalPerKey() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig
Get the value for the maxTotalPerKey configuration attribute for pools created with this configuration instance.
getMaxTotalPerKey() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getMaxWaitDuration() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the maximum duration the borrowObject() method should block before throwing an exception when the pool is exhausted and BaseGenericObjectPool.getBlockWhenExhausted() is true.
getMaxWaitDuration() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Gets the value for the maxWait configuration attribute for pools created with this configuration instance.
getMaxWaitMillis() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
getMaxWaitMillis() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
getMaxWaitMillis() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getMaxWaitMillis() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getMeanActiveDuration() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the mean time objects are active for based on the last BaseGenericObjectPool.MEAN_TIMING_STATS_CACHE_SIZE objects returned to the pool.
getMeanActiveTimeMillis() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
getMeanActiveTimeMillis() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getMeanActiveTimeMillis() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getMeanBorrowWaitDuration() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the mean time threads wait to borrow an object based on the last BaseGenericObjectPool.MEAN_TIMING_STATS_CACHE_SIZE objects borrowed from the pool.
getMeanBorrowWaitTimeMillis() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
getMeanBorrowWaitTimeMillis() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getMeanBorrowWaitTimeMillis() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getMeanIdleDuration() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the mean time objects are idle for based on the last BaseGenericObjectPool.MEAN_TIMING_STATS_CACHE_SIZE objects borrowed from the pool.
getMeanIdleTimeMillis() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
getMeanIdleTimeMillis() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getMeanIdleTimeMillis() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getMessageStatistics() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets whether to include statistics in exception messages.
getMinEvictableIdleDuration() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the minimum amount of time an object may sit idle in the pool before it is eligible for eviction by the idle object evictor (if any - see BaseGenericObjectPool.setDurationBetweenEvictionRuns(Duration)).
getMinEvictableIdleDuration() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Gets the value for the minEvictableIdleTime configuration attribute for pools created with this configuration instance.
getMinEvictableIdleTime() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
getMinEvictableIdleTime() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
getMinEvictableIdleTimeMillis() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
getMinEvictableIdleTimeMillis() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
getMinEvictableIdleTimeMillis() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getMinEvictableIdleTimeMillis() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getMinIdle() - Method in class org.apache.commons.pool2.impl.EvictionConfig
Gets the minIdle for this eviction configuration instance.
getMinIdle() - Method in class org.apache.commons.pool2.impl.GenericObjectPool
Gets the target for the minimum number of idle objects to maintain in the pool.
getMinIdle() - Method in class org.apache.commons.pool2.impl.GenericObjectPoolConfig
Get the value for the minIdle configuration attribute for pools created with this configuration instance.
getMinIdle() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getMinIdlePerKey() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Gets the target for the minimum number of idle objects to maintain in each of the keyed sub-pools.
getMinIdlePerKey() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig
Get the value for the minIdlePerKey configuration attribute for pools created with this configuration instance.
getMinIdlePerKey() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getNumActive() - Method in class org.apache.commons.pool2.BaseObjectPool
Not supported in this base implementation.
getNumActive() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
 
getNumActive() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getNumActive() - Method in class org.apache.commons.pool2.impl.GenericObjectPool
 
getNumActive() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getNumActive() - Method in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
Gets the number of instances currently borrowed from this pool.
getNumActive() - Method in interface org.apache.commons.pool2.KeyedObjectPool
Gets the total number of instances currently borrowed from this pool but not yet returned.
getNumActive() - Method in interface org.apache.commons.pool2.ObjectPool
Gets the number of instances currently borrowed from this pool.
getNumActive() - Method in class org.apache.commons.pool2.proxy.ProxiedKeyedObjectPool
 
getNumActive() - Method in class org.apache.commons.pool2.proxy.ProxiedObjectPool
 
getNumActive(K) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
 
getNumActive(K) - Method in interface org.apache.commons.pool2.KeyedObjectPool
Gets the number of instances currently borrowed from but not yet returned to the pool corresponding to the given key.
getNumActive(K) - Method in class org.apache.commons.pool2.proxy.ProxiedKeyedObjectPool
 
getNumActivePerKey() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
 
getNumActivePerKey() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getNumIdle() - Method in class org.apache.commons.pool2.BaseObjectPool
Not supported in this base implementation.
getNumIdle() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the number of instances currently idle in this pool.
getNumIdle() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
 
getNumIdle() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getNumIdle() - Method in class org.apache.commons.pool2.impl.GenericObjectPool
 
getNumIdle() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getNumIdle() - Method in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
Gets an approximation not less than the of the number of idle instances in the pool.
getNumIdle() - Method in interface org.apache.commons.pool2.KeyedObjectPool
Gets the total number of instances currently idle in this pool.
getNumIdle() - Method in interface org.apache.commons.pool2.ObjectPool
Gets the number of instances currently idle in this pool.
getNumIdle() - Method in class org.apache.commons.pool2.proxy.ProxiedKeyedObjectPool
 
getNumIdle() - Method in class org.apache.commons.pool2.proxy.ProxiedObjectPool
 
getNumIdle(K) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
 
getNumIdle(K) - Method in interface org.apache.commons.pool2.KeyedObjectPool
Gets the number of instances corresponding to the given key currently idle in this pool.
getNumIdle(K) - Method in class org.apache.commons.pool2.proxy.ProxiedKeyedObjectPool
 
getNumTestsPerEvictionRun() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the maximum number of objects to examine during each run (if any) of the idle object evictor thread.
getNumTestsPerEvictionRun() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Gets the value for the numTestsPerEvictionRun configuration attribute for pools created with this configuration instance.
getNumTestsPerEvictionRun() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getNumTestsPerEvictionRun() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getNumWaiters() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Gets an estimate of the number of threads currently blocked waiting for an object from the pool.
getNumWaiters() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getNumWaiters() - Method in class org.apache.commons.pool2.impl.GenericObjectPool
Gets an estimate of the number of threads currently blocked waiting for an object from the pool.
getNumWaiters() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getNumWaitersByKey() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Gets an estimate of the number of threads currently blocked waiting for an object from the pool for each key.
getNumWaitersByKey() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getObject() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
 
getObject() - Method in class org.apache.commons.pool2.impl.PooledSoftReference
Gets the object that the wrapped SoftReference refers to.
getObject() - Method in interface org.apache.commons.pool2.PooledObject
Gets the underlying object that is wrapped by this instance of PooledObject.
getPooledObjectToString() - Method in class org.apache.commons.pool2.impl.DefaultPooledObjectInfo
 
getPooledObjectToString() - Method in interface org.apache.commons.pool2.impl.DefaultPooledObjectInfoMBean
Gets a String form of the wrapper for debug purposes.
getPooledObjectType() - Method in class org.apache.commons.pool2.impl.DefaultPooledObjectInfo
 
getPooledObjectType() - Method in interface org.apache.commons.pool2.impl.DefaultPooledObjectInfoMBean
Gets the name of the class of the pooled object.
getReference() - Method in class org.apache.commons.pool2.impl.PooledSoftReference
Gets the SoftReference wrapped by this object.
getRemoveAbandonedOnBorrow() - Method in class org.apache.commons.pool2.impl.AbandonedConfig
Flag to remove abandoned objects if they exceed the removeAbandonedTimeout when borrowObject is invoked.
getRemoveAbandonedOnBorrow() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets whether a check is made for abandoned objects when an object is borrowed from this pool.
getRemoveAbandonedOnBorrow() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getRemoveAbandonedOnBorrow() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getRemoveAbandonedOnMaintenance() - Method in class org.apache.commons.pool2.impl.AbandonedConfig
Flag to remove abandoned objects if they exceed the removeAbandonedTimeout when pool maintenance (the "evictor") runs.
getRemoveAbandonedOnMaintenance() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets whether a check is made for abandoned objects when the evictor runs.
getRemoveAbandonedOnMaintenance() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getRemoveAbandonedOnMaintenance() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getRemoveAbandonedTimeout() - Method in class org.apache.commons.pool2.impl.AbandonedConfig
getRemoveAbandonedTimeout() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
getRemoveAbandonedTimeout() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getRemoveAbandonedTimeout() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getRemoveAbandonedTimeoutDuration() - Method in class org.apache.commons.pool2.impl.AbandonedConfig
Timeout before an abandoned object can be removed.
getRemoveAbandonedTimeoutDuration() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the timeout before which an object will be considered to be abandoned by this pool.
getRequireFullStackTrace() - Method in class org.apache.commons.pool2.impl.AbandonedConfig
Indicates if full stack traces are required when logAbandoned is true.
getReturnedCount() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the total number of objects returned to this pool over the lifetime of the pool.
getReturnedCount() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getReturnedCount() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getSoftMinEvictableIdleDuration() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the minimum amount of time an object may sit idle in the pool before it is eligible for eviction by the idle object evictor (if any - see BaseGenericObjectPool.setDurationBetweenEvictionRuns(Duration)), with the extra condition that at least minIdle object instances remain in the pool.
getSoftMinEvictableIdleDuration() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Gets the value for the softMinEvictableIdleTime configuration attribute for pools created with this configuration instance.
getSoftMinEvictableIdleTime() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
getSoftMinEvictableIdleTime() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
getSoftMinEvictableIdleTimeMillis() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
getSoftMinEvictableIdleTimeMillis() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
getState() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
Gets the state of this object.
getState() - Method in interface org.apache.commons.pool2.PooledObject
Gets the state of this object.
getSwallowedExceptionListener() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets the listener used (if any) to receive notifications of exceptions unavoidably swallowed by the pool.
getTestOnBorrow() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets whether objects borrowed from the pool will be validated before being returned from the borrowObject() method.
getTestOnBorrow() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Gets the value for the testOnBorrow configuration attribute for pools created with this configuration instance.
getTestOnBorrow() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getTestOnBorrow() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getTestOnCreate() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets whether objects created for the pool will be validated before being returned from the borrowObject() method.
getTestOnCreate() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Gets the value for the testOnCreate configuration attribute for pools created with this configuration instance.
getTestOnCreate() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getTestOnCreate() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getTestOnReturn() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets whether objects borrowed from the pool will be validated when they are returned to the pool via the returnObject() method.
getTestOnReturn() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Gets the value for the testOnReturn configuration attribute for pools created with this configuration instance.
getTestOnReturn() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getTestOnReturn() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getTestWhileIdle() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Gets whether objects sitting idle in the pool will be validated by the idle object evictor (if any - see BaseGenericObjectPool.setDurationBetweenEvictionRuns(Duration)).
getTestWhileIdle() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Gets the value for the testWhileIdle configuration attribute for pools created with this configuration instance.
getTestWhileIdle() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getTestWhileIdle() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getTimeBetweenEvictionRuns() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
getTimeBetweenEvictionRuns() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
getTimeBetweenEvictionRunsMillis() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
getTimeBetweenEvictionRunsMillis() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
getTimeBetweenEvictionRunsMillis() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
getTimeBetweenEvictionRunsMillis() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getUseUsageTracking() - Method in class org.apache.commons.pool2.impl.AbandonedConfig
If the pool implements UsageTracking, should the pool record a stack trace every time a method is called on a pooled object and retain the most recent stack trace to aid debugging of abandoned objects?

H

hashCode() - Method in interface org.apache.commons.pool2.PooledObject
 

I

IDLE - Enum constant in enum org.apache.commons.pool2.PooledObjectState
In the queue, not in use.
INSTANCE - Static variable in class org.apache.commons.pool2.impl.NoOpCallStack
Singleton instance.
INVALID - Enum constant in enum org.apache.commons.pool2.PooledObjectState
Failed maintenance (e.g.
invalidate() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
Sets the state to INVALID.
invalidate() - Method in interface org.apache.commons.pool2.PooledObject
Sets the state to INVALID.
invalidateObject(K, T) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Invalidates an object from the pool.
invalidateObject(K, T, DestroyMode) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Invalidates an object from the pool, using the provided DestroyMode.
invalidateObject(K, V) - Method in interface org.apache.commons.pool2.KeyedObjectPool
Invalidates an object from the pool.
invalidateObject(K, V) - Method in class org.apache.commons.pool2.proxy.ProxiedKeyedObjectPool
 
invalidateObject(K, V, DestroyMode) - Method in interface org.apache.commons.pool2.KeyedObjectPool
Invalidates an object from the pool, using the provided DestroyMode.
invalidateObject(T) - Method in class org.apache.commons.pool2.BaseObjectPool
 
invalidateObject(T) - Method in class org.apache.commons.pool2.impl.GenericObjectPool
Invalidates an object from the pool.
invalidateObject(T) - Method in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
Invalidates an object from the pool.
invalidateObject(T) - Method in interface org.apache.commons.pool2.ObjectPool
Invalidates an object from the pool.
invalidateObject(T) - Method in class org.apache.commons.pool2.proxy.ProxiedObjectPool
 
invalidateObject(T, DestroyMode) - Method in class org.apache.commons.pool2.impl.GenericObjectPool
Invalidates an object from the pool, using the provided DestroyMode
invalidateObject(T, DestroyMode) - Method in interface org.apache.commons.pool2.ObjectPool
Invalidates an object from the pool, using the provided DestroyMode
isAbandonedConfig() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Tests whether or not abandoned object removal is configured for this pool.
isAbandonedConfig() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
isAbandonedConfig() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
isClosed() - Method in class org.apache.commons.pool2.BaseObjectPool
Has this pool instance been closed.
isClosed() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Tests whether this pool instance been closed.
isClosed() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
isClosed() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
isNull(PooledObject<?>) - Static method in interface org.apache.commons.pool2.PooledObject
Tests whether the given PooledObject is null or contains a null.

J

JdkProxySource<T> - Class in org.apache.commons.pool2.proxy
Provides proxy objects using Java reflection.
JdkProxySource(ClassLoader, Class<?>[]) - Constructor for class org.apache.commons.pool2.proxy.JdkProxySource
Constructs a new proxy source for the given interfaces.

K

KeyedObjectPool<K,V> - Interface in org.apache.commons.pool2
A "keyed" pooling interface.
KeyedPooledObjectFactory<K,V> - Interface in org.apache.commons.pool2
An interface defining life-cycle methods for instances to be served by a KeyedObjectPool.

L

listAllObjects() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Provides information on all the objects in the pool, both idle (waiting to be borrowed) and active (currently borrowed).
listAllObjects() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
listAllObjects() - Method in class org.apache.commons.pool2.impl.GenericObjectPool
Provides information on all the objects in the pool, both idle (waiting to be borrowed) and active (currently borrowed).
listAllObjects() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean

M

makeObject() - Method in class org.apache.commons.pool2.BasePooledObjectFactory
 
makeObject() - Method in interface org.apache.commons.pool2.PooledObjectFactory
Creates an instance that can be served by the pool and wrap it in a PooledObject to be managed by the pool.
makeObject(K) - Method in class org.apache.commons.pool2.BaseKeyedPooledObjectFactory
 
makeObject(K) - Method in interface org.apache.commons.pool2.KeyedPooledObjectFactory
Creates an instance that can be served by the pool and wrap it in a PooledObject to be managed by the pool.
markAbandoned() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
Marks the pooled object as ABANDONED.
markAbandoned() - Method in interface org.apache.commons.pool2.PooledObject
Marks the pooled object as abandoned.
markReturning() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
Marks the pooled object as RETURNING.
markReturning() - Method in interface org.apache.commons.pool2.PooledObject
Marks the object as returning to the pool.
markReturningState(PooledObject<T>) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Marks the object as returning to the pool.
MEAN_TIMING_STATS_CACHE_SIZE - Static variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
The size of the caches used to store historical data for some attributes so that rolling means may be calculated.

N

newCallStack(String, boolean) - Static method in class org.apache.commons.pool2.impl.CallStackUtils
newCallStack(String, boolean, boolean) - Static method in class org.apache.commons.pool2.impl.CallStackUtils
Constructs a new CallStack using the fasted allowed strategy.
NoOpCallStack - Class in org.apache.commons.pool2.impl
CallStack strategy using no-op implementations of all functionality.
NORMAL - Enum constant in enum org.apache.commons.pool2.DestroyMode
Normal destroy.

O

ObjectPool<T> - Interface in org.apache.commons.pool2
A pooling simple interface.
onSwallowException(Exception) - Method in interface org.apache.commons.pool2.SwallowedExceptionListener
Notifies this instance every time the implementation unavoidably swallows an exception.
org.apache.commons.pool2 - package org.apache.commons.pool2
Object pooling API.
org.apache.commons.pool2.impl - package org.apache.commons.pool2.impl
Object pooling API implementations.
org.apache.commons.pool2.proxy - package org.apache.commons.pool2.proxy
Object pooling proxy implementation.

P

passivateObject(K, PooledObject<V>) - Method in class org.apache.commons.pool2.BaseKeyedPooledObjectFactory
Uninitializes an instance to be returned to the idle object pool.
passivateObject(K, PooledObject<V>) - Method in interface org.apache.commons.pool2.KeyedPooledObjectFactory
Uninitializes an instance to be returned to the idle object pool.
passivateObject(PooledObject<T>) - Method in class org.apache.commons.pool2.BasePooledObjectFactory
No-op.
passivateObject(PooledObject<T>) - Method in interface org.apache.commons.pool2.PooledObjectFactory
Uninitializes an instance to be returned to the idle object pool.
PooledObject<T> - Interface in org.apache.commons.pool2
Defines the wrapper that is used to track the additional information, such as state, for the pooled objects.
PooledObjectFactory<T> - Interface in org.apache.commons.pool2
An interface defining life-cycle methods for instances to be served by an ObjectPool.
PooledObjectState - Enum in org.apache.commons.pool2
Provides all possible states of a PooledObject.
PooledSoftReference<T> - Class in org.apache.commons.pool2.impl
Extension of DefaultPooledObject to wrap pooled soft references.
PooledSoftReference(SoftReference<T>) - Constructor for class org.apache.commons.pool2.impl.PooledSoftReference
Creates a new PooledSoftReference wrapping the provided reference.
PoolUtils - Class in org.apache.commons.pool2
This class consists exclusively of static methods that operate on or return ObjectPool or KeyedObjectPool related interfaces.
PoolUtils() - Constructor for class org.apache.commons.pool2.PoolUtils
PoolUtils instances should NOT be constructed in standard programming.
prefill(KeyedObjectPool<K, V>, Collection<K>, int) - Static method in class org.apache.commons.pool2.PoolUtils
prefill(KeyedObjectPool<K, V>, K, int) - Static method in class org.apache.commons.pool2.PoolUtils
prefill(ObjectPool<T>, int) - Static method in class org.apache.commons.pool2.PoolUtils
Deprecated.
preparePool() - Method in class org.apache.commons.pool2.impl.GenericObjectPool
Tries to ensure that GenericObjectPool.getMinIdle() idle instances are available in the pool.
preparePool(K) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Registers a key for pool control and ensures that GenericKeyedObjectPool.getMinIdlePerKey() idle instances are created.
printStackTrace(PrintWriter) - Method in interface org.apache.commons.pool2.impl.CallStack
Prints the current stack trace if available to a PrintWriter.
printStackTrace(PrintWriter) - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
 
printStackTrace(PrintWriter) - Method in class org.apache.commons.pool2.impl.NoOpCallStack
 
printStackTrace(PrintWriter) - Method in class org.apache.commons.pool2.impl.SecurityManagerCallStack
 
printStackTrace(PrintWriter) - Method in class org.apache.commons.pool2.impl.ThrowableCallStack
 
printStackTrace(PrintWriter) - Method in interface org.apache.commons.pool2.PooledObject
Prints the stack trace of the code that borrowed this pooled object and the stack trace of the last code to use this object (if available) to the supplied writer.
ProxiedKeyedObjectPool<K,V> - Class in org.apache.commons.pool2.proxy
Create 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.
ProxiedKeyedObjectPool(KeyedObjectPool<K, V>, ProxySource<V>) - Constructor for class org.apache.commons.pool2.proxy.ProxiedKeyedObjectPool
Constructs a new proxied object pool.
ProxiedObjectPool<T> - Class in org.apache.commons.pool2.proxy
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.
ProxiedObjectPool(ObjectPool<T>, ProxySource<T>) - Constructor for class org.apache.commons.pool2.proxy.ProxiedObjectPool
Constructs a new proxied object pool.

R

resolveProxy(T) - Method in class org.apache.commons.pool2.proxy.CglibProxySource
 
resolveProxy(T) - Method in class org.apache.commons.pool2.proxy.JdkProxySource
 
RETURNING - Enum constant in enum org.apache.commons.pool2.PooledObjectState
Returning to the pool.
returnObject(K, T) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Returns an object to a keyed sub-pool.
returnObject(K, V) - Method in interface org.apache.commons.pool2.KeyedObjectPool
Return an instance to the pool.
returnObject(K, V) - Method in class org.apache.commons.pool2.proxy.ProxiedKeyedObjectPool
 
returnObject(T) - Method in class org.apache.commons.pool2.BaseObjectPool
 
returnObject(T) - Method in class org.apache.commons.pool2.impl.GenericObjectPool
Returns an instance to the pool.
returnObject(T) - Method in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
Returns an instance to the pool after successful validation and passivation.
returnObject(T) - Method in interface org.apache.commons.pool2.ObjectPool
Returns an instance to the pool.
returnObject(T) - Method in class org.apache.commons.pool2.proxy.ProxiedObjectPool
 

S

SecurityManagerCallStack - Class in org.apache.commons.pool2.impl
A CallStack strategy using a SecurityManager.
SecurityManagerCallStack(String, boolean) - Constructor for class org.apache.commons.pool2.impl.SecurityManagerCallStack
Creates a new instance.
setAbandonedConfig(AbandonedConfig) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Sets the abandoned object removal configuration.
setBlockWhenExhausted(boolean) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Sets whether to block when the borrowObject() method is invoked when the pool is exhausted (the maximum number of "active" objects has been reached).
setBlockWhenExhausted(boolean) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Sets the value for the blockWhenExhausted configuration attribute for pools created with this configuration instance.
setConfig(BaseObjectPoolConfig<T>) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Sets the receiver with the given configuration.
setConfig(GenericKeyedObjectPoolConfig<T>) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Sets the configuration.
setConfig(GenericObjectPoolConfig<T>) - Method in class org.apache.commons.pool2.impl.GenericObjectPool
Sets the base pool configuration.
setDurationBetweenEvictionRuns(Duration) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Sets the number of milliseconds to sleep between runs of the idle object evictor thread.
setEvictionPolicy(EvictionPolicy<T>) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Sets the eviction policy for this pool.
setEvictionPolicy(EvictionPolicy<T>) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Sets the value for the evictionPolicyClass configuration attribute for pools created with this configuration instance.
setEvictionPolicyClassName(String) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Sets the name of the EvictionPolicy implementation that is used by this pool.
setEvictionPolicyClassName(String) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Sets the value for the evictionPolicyClassName configuration attribute for pools created with this configuration instance.
setEvictionPolicyClassName(String, ClassLoader) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Sets the name of the EvictionPolicy implementation that is used by this pool.
setEvictorShutdownTimeout(Duration) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Sets the timeout that will be used when waiting for the Evictor to shutdown if this pool is closed and it is the only pool still using the value for the Evictor.
setEvictorShutdownTimeout(Duration) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Sets the value for the evictorShutdownTimeout configuration attribute for pools created with this configuration instance.
setEvictorShutdownTimeoutMillis(long) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
setEvictorShutdownTimeoutMillis(long) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
setEvictorShutdownTimeoutMillis(Duration) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
setFairness(boolean) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Sets the value for the fairness configuration attribute for pools created with this configuration instance.
setJmxEnabled(boolean) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Sets the value of the flag that determines if JMX will be enabled for pools created with this configuration instance.
setJmxNameBase(String) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Sets the value of the JMX name base that will be used as part of the name assigned to JMX enabled pools created with this configuration instance.
setJmxNamePrefix(String) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Sets the value of the JMX name prefix that will be used as part of the name assigned to JMX enabled pools created with this configuration instance.
setLifo(boolean) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Sets whether the pool has LIFO (last in, first out) behavior with respect to idle objects - always returning the most recently used object from the pool, or as a FIFO (first in, first out) queue, where the pool always returns the oldest object in the idle object pool.
setLifo(boolean) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Sets the value for the lifo configuration attribute for pools created with this configuration instance.
setLogAbandoned(boolean) - Method in class org.apache.commons.pool2.impl.AbandonedConfig
Sets the flag to log stack traces for application code which abandoned an object.
setLogAbandoned(boolean) - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
 
setLogAbandoned(boolean) - Method in interface org.apache.commons.pool2.PooledObject
Sets whether to use abandoned object tracking.
setLogWriter(PrintWriter) - Method in class org.apache.commons.pool2.impl.AbandonedConfig
Sets the log writer to be used by this configuration to log information on abandoned objects.
setMaxIdle(int) - Method in class org.apache.commons.pool2.impl.GenericObjectPool
Sets the cap on the number of "idle" instances in the pool.
setMaxIdle(int) - Method in class org.apache.commons.pool2.impl.GenericObjectPoolConfig
Set the value for the maxIdle configuration attribute for pools created with this configuration instance.
setMaxIdlePerKey(int) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Sets the cap on the number of "idle" instances per key in the pool.
setMaxIdlePerKey(int) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig
Set the value for the maxIdlePerKey configuration attribute for pools created with this configuration instance.
setMaxTotal(int) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Sets the cap on the number of objects that can be allocated by the pool (checked out to clients, or idle awaiting checkout) at a given time.
setMaxTotal(int) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig
Set the value for the maxTotal configuration attribute for pools created with this configuration instance.
setMaxTotal(int) - Method in class org.apache.commons.pool2.impl.GenericObjectPoolConfig
Set the value for the maxTotal configuration attribute for pools created with this configuration instance.
setMaxTotalPerKey(int) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Sets the limit on the number of object instances allocated by the pool (checked out or idle), per key.
setMaxTotalPerKey(int) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig
Set the value for the maxTotalPerKey configuration attribute for pools created with this configuration instance.
setMaxWait(Duration) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Sets the maximum duration the borrowObject() method should block before throwing an exception when the pool is exhausted and BaseGenericObjectPool.getBlockWhenExhausted() is true.
setMaxWait(Duration) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Sets the value for the maxWait configuration attribute for pools created with this configuration instance.
setMaxWaitMillis(long) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
setMaxWaitMillis(long) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
setMessagesStatistics(boolean) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Sets whether to include statistics in exception messages.
setMinEvictableIdle(Duration) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
setMinEvictableIdleDuration(Duration) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Sets the minimum amount of time an object may sit idle in the pool before it is eligible for eviction by the idle object evictor (if any - see BaseGenericObjectPool.setDurationBetweenEvictionRuns(Duration)).
setMinEvictableIdleDuration(Duration) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Sets the value for the minEvictableIdleTime configuration attribute for pools created with this configuration instance.
setMinEvictableIdleTime(Duration) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
setMinEvictableIdleTime(Duration) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
setMinEvictableIdleTimeMillis(long) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
setMinEvictableIdleTimeMillis(long) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
setMinIdle(int) - Method in class org.apache.commons.pool2.impl.GenericObjectPool
Sets the target for the minimum number of idle objects to maintain in the pool.
setMinIdle(int) - Method in class org.apache.commons.pool2.impl.GenericObjectPoolConfig
Set the value for the minIdle configuration attribute for pools created with this configuration instance.
setMinIdlePerKey(int) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
Sets the target for the minimum number of idle objects to maintain in each of the keyed sub-pools.
setMinIdlePerKey(int) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig
Set the value for the minIdlePerKey configuration attribute for pools created with this configuration instance.
setNumTestsPerEvictionRun(int) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Sets the maximum number of objects to examine during each run (if any) of the idle object evictor thread.
setNumTestsPerEvictionRun(int) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Sets the value for the numTestsPerEvictionRun configuration attribute for pools created with this configuration instance.
setReference(SoftReference<T>) - Method in class org.apache.commons.pool2.impl.PooledSoftReference
Sets the wrapped reference.
setRemoveAbandonedOnBorrow(boolean) - Method in class org.apache.commons.pool2.impl.AbandonedConfig
Flag to remove abandoned objects if they exceed the removeAbandonedTimeout when borrowObject is invoked.
setRemoveAbandonedOnMaintenance(boolean) - Method in class org.apache.commons.pool2.impl.AbandonedConfig
Flag to remove abandoned objects if they exceed the removeAbandonedTimeout when pool maintenance runs.
setRemoveAbandonedTimeout(int) - Method in class org.apache.commons.pool2.impl.AbandonedConfig
setRemoveAbandonedTimeout(Duration) - Method in class org.apache.commons.pool2.impl.AbandonedConfig
Sets the timeout before an abandoned object can be removed.
setRequireFullStackTrace(boolean) - Method in class org.apache.commons.pool2.impl.AbandonedConfig
Sets the flag to require full stack traces for logging abandoned connections when enabled.
setRequireFullStackTrace(boolean) - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
Configures the stack trace generation strategy based on whether or not fully detailed stack traces are required.
setRequireFullStackTrace(boolean) - Method in interface org.apache.commons.pool2.PooledObject
Sets the stack trace generation strategy based on whether or not fully detailed stack traces are required.
setSoftMinEvictableIdle(Duration) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
setSoftMinEvictableIdleDuration(Duration) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Sets the minimum amount of time an object may sit idle in the pool before it is eligible for eviction by the idle object evictor (if any - see BaseGenericObjectPool.setDurationBetweenEvictionRuns(Duration)), with the extra condition that at least minIdle object instances remain in the pool.
setSoftMinEvictableIdleDuration(Duration) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Sets the value for the softMinEvictableIdleTime configuration attribute for pools created with this configuration instance.
setSoftMinEvictableIdleTime(Duration) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
setSoftMinEvictableIdleTime(Duration) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
setSoftMinEvictableIdleTimeMillis(long) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
setSoftMinEvictableIdleTimeMillis(long) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
setSwallowedExceptionListener(SwallowedExceptionListener) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Sets the listener used (if any) to receive notifications of exceptions unavoidably swallowed by the pool.
setTestOnBorrow(boolean) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Sets whether objects borrowed from the pool will be validated before being returned from the borrowObject() method.
setTestOnBorrow(boolean) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Sets the value for the testOnBorrow configuration attribute for pools created with this configuration instance.
setTestOnCreate(boolean) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Sets whether objects created for the pool will be validated before being returned from the borrowObject() method.
setTestOnCreate(boolean) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Sets the value for the testOnCreate configuration attribute for pools created with this configuration instance.
setTestOnReturn(boolean) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Sets whether objects borrowed from the pool will be validated when they are returned to the pool via the returnObject() method.
setTestOnReturn(boolean) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Sets the value for the testOnReturn configuration attribute for pools created with this configuration instance.
setTestWhileIdle(boolean) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
Sets whether objects sitting idle in the pool will be validated by the idle object evictor (if any - see BaseGenericObjectPool.setDurationBetweenEvictionRuns(Duration)).
setTestWhileIdle(boolean) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Sets the value for the testWhileIdle configuration attribute for pools created with this configuration instance.
setTimeBetweenEvictionRuns(Duration) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
setTimeBetweenEvictionRuns(Duration) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
Sets the value for the timeBetweenEvictionRuns configuration attribute for pools created with this configuration instance.
setTimeBetweenEvictionRunsMillis(long) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
setTimeBetweenEvictionRunsMillis(long) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
setUseUsageTracking(boolean) - Method in class org.apache.commons.pool2.impl.AbandonedConfig
If the pool implements UsageTracking, configure whether the pool should record a stack trace every time a method is called on a pooled object and retain the most recent stack trace to aid debugging of abandoned objects.
SoftReferenceObjectPool<T> - Class in org.apache.commons.pool2.impl
SoftReferenceObjectPool(PooledObjectFactory<T>) - Constructor for class org.apache.commons.pool2.impl.SoftReferenceObjectPool
Constructs a SoftReferenceObjectPool with the specified factory.
startEvictionTest() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
 
startEvictionTest() - Method in interface org.apache.commons.pool2.PooledObject
Attempts to place the pooled object in the PooledObjectState.EVICTION state.
SwallowedExceptionListener - Interface in org.apache.commons.pool2
Pools that unavoidably swallow exceptions may be configured with an instance of this listener so the user may receive notification of when this happens.
synchronizedKeyedPooledFactory(KeyedPooledObjectFactory<K, V>) - Static method in class org.apache.commons.pool2.PoolUtils
Returns a synchronized (thread-safe) KeyedPooledObjectFactory backed by the specified KeyedPooledObjectFactory.
synchronizedPool(KeyedObjectPool<K, V>) - Static method in class org.apache.commons.pool2.PoolUtils
Returns a synchronized (thread-safe) KeyedObjectPool backed by the specified KeyedObjectPool.
synchronizedPool(ObjectPool<T>) - Static method in class org.apache.commons.pool2.PoolUtils
Returns a synchronized (thread-safe) ObjectPool backed by the specified ObjectPool.
synchronizedPooledFactory(PooledObjectFactory<T>) - Static method in class org.apache.commons.pool2.PoolUtils
Returns a synchronized (thread-safe) PooledObjectFactory backed by the specified PooledObjectFactory.

T

ThrowableCallStack - Class in org.apache.commons.pool2.impl
CallStack strategy that uses the stack trace from a Throwable.
ThrowableCallStack(String, boolean) - Constructor for class org.apache.commons.pool2.impl.ThrowableCallStack
Creates a new instance.
toString() - Method in class org.apache.commons.pool2.BaseObject
 
toString() - Method in class org.apache.commons.pool2.impl.AbandonedConfig
 
toString() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
 
toString() - Method in class org.apache.commons.pool2.impl.DefaultPooledObjectInfo
 
toString() - Method in class org.apache.commons.pool2.impl.EvictionConfig
 
toString() - Method in class org.apache.commons.pool2.impl.PooledSoftReference
Gets a String form of the wrapper for debug purposes.
toString() - Method in interface org.apache.commons.pool2.PooledObject
Gets a String form of the wrapper for debug purposes.
toString() - Method in class org.apache.commons.pool2.proxy.CglibProxySource
 
toString() - Method in class org.apache.commons.pool2.proxy.JdkProxySource
 
toString() - Method in class org.apache.commons.pool2.proxy.ProxiedKeyedObjectPool
 
toString() - Method in class org.apache.commons.pool2.proxy.ProxiedObjectPool
 
toStringAppendFields(StringBuilder) - Method in class org.apache.commons.pool2.BaseObject
Used by sub-classes to include the fields defined by the sub-class in the BaseObject.toString() output.
toStringAppendFields(StringBuilder) - Method in class org.apache.commons.pool2.BaseObjectPool
 
toStringAppendFields(StringBuilder) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
 
toStringAppendFields(StringBuilder) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
 
toStringAppendFields(StringBuilder) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
 
toStringAppendFields(StringBuilder) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig
 
toStringAppendFields(StringBuilder) - Method in class org.apache.commons.pool2.impl.GenericObjectPool
 
toStringAppendFields(StringBuilder) - Method in class org.apache.commons.pool2.impl.GenericObjectPoolConfig
 
toStringAppendFields(StringBuilder) - Method in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
 
TrackedUse - Interface in org.apache.commons.pool2
Allows pooled objects to make information available about when and how they were used available to the object pool.

U

UsageTracking<T> - Interface in org.apache.commons.pool2
This interface may be implemented by an object pool to enable clients (primarily those clients that wrap pools to provide pools with extended features) to provide additional information to the pool relating to object using allowing more informed decisions and reporting to be made regarding abandoned objects.
use() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
 
use() - Method in interface org.apache.commons.pool2.PooledObject
Records the current stack trace as the last time the object was used.
use(T) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
 
use(T) - Method in class org.apache.commons.pool2.impl.GenericObjectPool
 
use(T) - Method in interface org.apache.commons.pool2.UsageTracking
Called every time a pooled object is used to enable the pool to better track borrowed objects.

V

validateObject(K, PooledObject<V>) - Method in class org.apache.commons.pool2.BaseKeyedPooledObjectFactory
Ensures that the instance is safe to be returned by the pool.
validateObject(K, PooledObject<V>) - Method in interface org.apache.commons.pool2.KeyedPooledObjectFactory
Ensures that the instance is safe to be returned by the pool.
validateObject(PooledObject<T>) - Method in class org.apache.commons.pool2.BasePooledObjectFactory
Always returns true.
validateObject(PooledObject<T>) - Method in interface org.apache.commons.pool2.PooledObjectFactory
Ensures that the instance is safe to be returned by the pool.
VALIDATION - Enum constant in enum org.apache.commons.pool2.PooledObjectState
In the queue, currently being validated.
VALIDATION_PREALLOCATED - Enum constant in enum org.apache.commons.pool2.PooledObjectState
Not in queue, currently being validated.
VALIDATION_RETURN_TO_HEAD - Enum constant in enum org.apache.commons.pool2.PooledObjectState
Not in queue, currently being validated.
valueOf(String) - Static method in enum org.apache.commons.pool2.DestroyMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.apache.commons.pool2.PooledObjectState
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.apache.commons.pool2.DestroyMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.apache.commons.pool2.PooledObjectState
Returns an array containing the constants of this enum type, in the order they are declared.

W

wrap(T) - Method in class org.apache.commons.pool2.BasePooledObjectFactory
Wraps the provided instance with an implementation of PooledObject.
wrap(V) - Method in class org.apache.commons.pool2.BaseKeyedPooledObjectFactory
Wraps the provided instance with an implementation of PooledObject.
A B C D E F G H I J K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values