Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- ABANDONED - Enum constant in enum org.apache.commons.pool2.PooledObjectState
-
Deemed abandoned, to be invalidated.
- AbandonedConfig - Class in org.apache.commons.pool2.impl
-
Configuration settings for abandoned object removal.
- AbandonedConfig() - Constructor for class org.apache.commons.pool2.impl.AbandonedConfig
- activateObject(K, PooledObject<V>) - Method in class org.apache.commons.pool2.BaseKeyedPooledObjectFactory
-
Reinitialize an instance to be returned by the pool.
- activateObject(K, PooledObject<V>) - Method in interface org.apache.commons.pool2.KeyedPooledObjectFactory
-
Reinitialize 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
-
Reinitialize 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
-
Create an object, and place it into the pool.
- addObject() - Method in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
-
Create an object, and place it into the pool.
- addObject() - Method in interface org.apache.commons.pool2.ObjectPool
-
Create 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
-
Create 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
- 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.
B
- BaseGenericObjectPool<T> - Class in org.apache.commons.pool2.impl
-
Base class that provides common functionality for
GenericObjectPool
andGenericKeyedObjectPool
. - BaseGenericObjectPool(BaseObjectPoolConfig, 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
- BaseObjectPool<T> - Class in org.apache.commons.pool2
-
A simple base implementation of
ObjectPool
. - BaseObjectPool() - Constructor for class org.apache.commons.pool2.BaseObjectPool
- BaseObjectPoolConfig - 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
-
Equivalent to
.borrowObject
(BaseGenericObjectPool.getMaxWaitMillis()
) - borrowObject() - Method in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
-
Borrow an object from the pool.
- borrowObject() - Method in interface org.apache.commons.pool2.ObjectPool
-
Obtains 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
-
Borrow 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
-
Equivalent to
.borrowObject
(key,BaseGenericObjectPool.getMaxWaitMillis()
) - borrowObject(K) - Method in interface org.apache.commons.pool2.KeyedObjectPool
-
Obtains 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
- 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
-
Create 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 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.SoftReferenceObjectPool
-
Clears any objects sitting idle in the pool.
- 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
- 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
-
Close 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
-
Close this pool, and free any resources associated with it.
- close() - Method in interface org.apache.commons.pool2.KeyedObjectPool
-
Close this pool, and free any resources associated with it.
- close() - Method in interface org.apache.commons.pool2.ObjectPool
-
Close 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.
- 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
-
Create 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
- deallocate() - Method in interface org.apache.commons.pool2.PooledObject
- DEFAULT_BLOCK_WHEN_EXHAUSTED - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
-
The default value for the
blockWhenExhausted
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_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_MILLIS - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
-
The default value for the
maxWait
configuration attribute. - DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
-
The default value for the
minEvictableIdleTimeMillis
configuration attribute. - 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_TIME_MILLIS - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
-
The default value for the
softMinEvictableIdleTimeMillis
configuration attribute. - 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_MILLIS - Static variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
-
The default value for the
timeBetweenEvictionRunsMillis
configuration attribute. - 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
-
Create 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
-
Create 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.
- destroyObject(K, PooledObject<V>) - Method in class org.apache.commons.pool2.BaseKeyedPooledObjectFactory
-
Destroy an instance no longer needed by the pool.
- destroyObject(K, PooledObject<V>) - Method in interface org.apache.commons.pool2.KeyedPooledObjectFactory
-
Destroy an instance no longer needed by the pool.
- 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.
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
-
Called to inform 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
-
This method is called to test 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
-
Create 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.
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
-
Create a new
GenericKeyedObjectPool
using defaults fromGenericKeyedObjectPoolConfig
. - GenericKeyedObjectPool(KeyedPooledObjectFactory<K, T>, GenericKeyedObjectPoolConfig) - Constructor for class org.apache.commons.pool2.impl.GenericKeyedObjectPool
-
Create a new
GenericKeyedObjectPool
using a specific configuration. - GenericKeyedObjectPoolConfig - Class in org.apache.commons.pool2.impl
-
A simple "struct" encapsulating the configuration for a
GenericKeyedObjectPool
. - GenericKeyedObjectPoolConfig() - Constructor for class org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig
-
Create 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
-
Create a new
GenericObjectPool
using defaults fromGenericObjectPoolConfig
. - GenericObjectPool(PooledObjectFactory<T>, GenericObjectPoolConfig) - Constructor for class org.apache.commons.pool2.impl.GenericObjectPool
-
Create a new
GenericObjectPool
using a specific configuration. - GenericObjectPool(PooledObjectFactory<T>, GenericObjectPoolConfig, AbandonedConfig) - Constructor for class org.apache.commons.pool2.impl.GenericObjectPool
-
Create a new
GenericObjectPool
that tracks and destroys objects that are checked out, but never returned to the pool. - GenericObjectPoolConfig - Class in org.apache.commons.pool2.impl
-
A simple "struct" 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.
- getActiveTimeMillis() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
- getActiveTimeMillis() - Method in interface org.apache.commons.pool2.PooledObject
-
Obtain the time in milliseconds that this object last spent in the the active state (it may still be active in which case subsequent calls will return an increased value).
- getBlockWhenExhausted() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
Returns 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
-
Get 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
-
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
-
Get 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
-
Get 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
- getCreatedCount() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
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
- 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
-
Obtain the time (using the same basis as
System.currentTimeMillis()
) that pooled object was created. - getCreateTime() - Method in interface org.apache.commons.pool2.PooledObject
-
Obtain the time (using the same basis as
System.currentTimeMillis()
) that this object was created. - getCreateTimeFormatted() - Method in class org.apache.commons.pool2.impl.DefaultPooledObjectInfo
- getCreateTimeFormatted() - Method in interface org.apache.commons.pool2.impl.DefaultPooledObjectInfoMBean
-
Obtain the time that pooled object was created.
- getCreationStackTrace() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
Provides 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
-
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
-
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
-
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
- getEvictionPolicyClassName() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
Returns the name of the
EvictionPolicy
implementation that is used by this pool. - getEvictionPolicyClassName() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
-
Get the value for the
evictionPolicyClassName
configuration attribute for pools created with this configuration instance. - getFactory() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
-
Obtain 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
-
Obtain 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
-
Returns the
PooledObjectFactory
used by this pool to create and manage object instances. - getFactoryType() - Method in class org.apache.commons.pool2.impl.GenericObjectPool
-
Return 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
-
Returns whether or not the pool serves threads waiting to borrow objects fairly.
- getFairness() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
-
Get 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
- getIdleEvictTime() - Method in class org.apache.commons.pool2.impl.EvictionConfig
-
Obtain the
idleEvictTime
for this eviction configuration instance. - getIdleSoftEvictTime() - Method in class org.apache.commons.pool2.impl.EvictionConfig
-
Obtain the
idleSoftEvictTime
for this eviction configuration instance. - getIdleTimeMillis() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
- getIdleTimeMillis() - Method in interface org.apache.commons.pool2.PooledObject
-
Obtain the time in milliseconds that this object last spend in the the idle state (it may still be idle in which case subsequent calls will return an increased value).
- 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
-
Provides 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.
- 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
-
Obtain the time (using the same basis as
System.currentTimeMillis()
) the polled object was last borrowed. - getLastBorrowTime() - Method in interface org.apache.commons.pool2.PooledObject
-
Obtain the time the wrapped object was last borrowed.
- getLastBorrowTimeFormatted() - Method in class org.apache.commons.pool2.impl.DefaultPooledObjectInfo
- getLastBorrowTimeFormatted() - Method in interface org.apache.commons.pool2.impl.DefaultPooledObjectInfoMBean
-
Obtain 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
-
Obtain the stack trace recorded when the pooled 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
-
Obtain the time (using the same basis as
System.currentTimeMillis()
)the wrapped object was last returned. - getLastReturnTime() - Method in interface org.apache.commons.pool2.PooledObject
-
Obtain the time the wrapped object was last returned.
- getLastReturnTimeFormatted() - Method in class org.apache.commons.pool2.impl.DefaultPooledObjectInfo
- getLastReturnTimeFormatted() - Method in interface org.apache.commons.pool2.impl.DefaultPooledObjectInfoMBean
-
Obtain the time that pooled object was last returned.
- getLastUsed() - Method in interface org.apache.commons.pool2.TrackedUse
-
Get the last time this object was used in ms.
- getLastUsedTime() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
-
Return an estimate of the last time this object was used.
- getLastUsedTime() - Method in interface org.apache.commons.pool2.PooledObject
-
Return an estimate of the last time this object was used.
- getLifo() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
Returns whether the pool has LIFO (last in, first out) behaviour 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
-
Get 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.GenericObjectPool
-
Will this pool identify and log any abandoned objects?
- getLogAbandoned() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
- getLogWriter() - Method in class org.apache.commons.pool2.impl.AbandonedConfig
-
Returns the log writer being used by this configuration to log information on abandoned objects.
- getMaxBorrowWaitTimeMillis() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
The maximum time a thread has waited to borrow objects from the pool.
- 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
-
Returns 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
-
Returns 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
-
Returns 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
-
Returns 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
- getMaxWaitMillis() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
Returns the maximum amount of time (in milliseconds) the
borrowObject()
method should block before throwing an exception when the pool is exhausted andBaseGenericObjectPool.getBlockWhenExhausted()
is true. - getMaxWaitMillis() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
-
Get the value for the
maxWait
configuration attribute for pools created with this configuration instance. - getMaxWaitMillis() - Method in interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
- getMaxWaitMillis() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
- getMeanActiveTimeMillis() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
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 interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
- getMeanActiveTimeMillis() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
- getMeanBorrowWaitTimeMillis() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
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 interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
- getMeanBorrowWaitTimeMillis() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
- getMeanIdleTimeMillis() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
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 interface org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean
- getMeanIdleTimeMillis() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
- getMinEvictableIdleTimeMillis() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
Returns 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.setTimeBetweenEvictionRunsMillis(long)
). - getMinEvictableIdleTimeMillis() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
-
Get the value for the
minEvictableIdleTimeMillis
configuration attribute for pools created with this configuration instance. - 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
-
Obtain the
minIdle
for this eviction configuration instance. - getMinIdle() - Method in class org.apache.commons.pool2.impl.GenericObjectPool
-
Returns 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
-
Returns 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
-
Return the number of instances currently borrowed from this pool.
- getNumActive() - Method in interface org.apache.commons.pool2.KeyedObjectPool
-
Returns the total number of instances current borrowed from this pool but not yet returned.
- getNumActive() - Method in interface org.apache.commons.pool2.ObjectPool
-
Return 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
-
Returns 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
-
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
-
Returns an approximation not less than the of the number of idle instances in the pool.
- getNumIdle() - Method in interface org.apache.commons.pool2.KeyedObjectPool
-
Returns the total number of instances currently idle in this pool.
- getNumIdle() - Method in interface org.apache.commons.pool2.ObjectPool
-
Return 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
-
Returns 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
-
Returns 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
-
Get 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
-
Return 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
-
Return 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
-
Return 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
-
Returns the object that the wrapped SoftReference refers to.
- getObject() - Method in interface org.apache.commons.pool2.PooledObject
-
Obtain 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
-
Provides 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
-
Obtain the name of the class of the pooled object.
- getReference() - Method in class org.apache.commons.pool2.impl.PooledSoftReference
-
Returns 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.GenericObjectPool
-
Will a check be made for abandoned objects when an object is borrowed from this pool?
- 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.GenericObjectPool
-
Will a check be made for abandoned objects when the evictor runs?
- getRemoveAbandonedOnMaintenance() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
- getRemoveAbandonedTimeout() - Method in class org.apache.commons.pool2.impl.AbandonedConfig
-
Timeout in seconds before an abandoned object can be removed.
- getRemoveAbandonedTimeout() - Method in class org.apache.commons.pool2.impl.GenericObjectPool
-
Obtain the timeout before which an object will be considered to be abandoned by this pool.
- getRemoveAbandonedTimeout() - Method in interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
- getReturnedCount() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
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
- getSoftMinEvictableIdleTimeMillis() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
Returns 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.setTimeBetweenEvictionRunsMillis(long)
), with the extra condition that at leastminIdle
object instances remain in the pool. - getSoftMinEvictableIdleTimeMillis() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
-
Get the value for the
softMinEvictableIdleTimeMillis
configuration attribute for pools created with this configuration instance. - getState() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
-
Returns the state of this object.
- getState() - Method in interface org.apache.commons.pool2.PooledObject
-
Returns the state of this object.
- getSwallowedExceptionListener() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
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
-
Returns 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
-
Get 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
-
Returns 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
-
Get 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
-
Returns 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
-
Get 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
-
Returns whether objects sitting idle in the pool will be validated by the idle object evictor (if any - see
BaseGenericObjectPool.setTimeBetweenEvictionRunsMillis(long)
). - getTestWhileIdle() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
-
Get 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
- getTimeBetweenEvictionRunsMillis() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
Returns the number of milliseconds to sleep between runs of the idle object evictor thread.
- getTimeBetweenEvictionRunsMillis() - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
-
Get the value for the
timeBetweenEvictionRunsMillis
configuration attribute for pools created with this configuration instance. - 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.
- 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, 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(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
- isAbandonedConfig() - Method in class org.apache.commons.pool2.impl.GenericObjectPool
-
Whether or not abandoned object removal is configured for this pool.
- 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
-
Has 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
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
-
Create 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
-
Create 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
-
Create 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 object as returning to the pool.
- markReturning() - Method in interface org.apache.commons.pool2.PooledObject
-
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.
O
- ObjectPool<T> - Interface in org.apache.commons.pool2
-
A pooling simple interface.
- onSwallowException(Exception) - Method in interface org.apache.commons.pool2.SwallowedExceptionListener
-
This method is called 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
-
Uninitialize an instance to be returned to the idle object pool.
- passivateObject(K, PooledObject<V>) - Method in interface org.apache.commons.pool2.KeyedPooledObjectFactory
-
Uninitialize 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
-
Uninitialize 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 the possible states that a
PooledObject
may be in. - 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
-
Call
addObject(Object)
onkeyedPool
with each key inkeys
forcount
number of times. - prefill(KeyedObjectPool<K, V>, K, int) - Static method in class org.apache.commons.pool2.PoolUtils
-
Call
addObject(Object)
onkeyedPool
withkey
count
number of times. - prefill(ObjectPool<T>, int) - Static method in class org.apache.commons.pool2.PoolUtils
-
Call
addObject()
onpool
count
number of times. - 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 class org.apache.commons.pool2.impl.DefaultPooledObject
- 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
-
Create 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
-
Create 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
-
Return 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
-
Return an instance to the pool.
- returnObject(T) - Method in class org.apache.commons.pool2.proxy.ProxiedObjectPool
S
- setAbandonedConfig(AbandonedConfig) - Method in class org.apache.commons.pool2.impl.GenericObjectPool
-
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
-
Set the value for the
blockWhenExhausted
configuration attribute for pools created with this configuration instance. - setConfig(GenericKeyedObjectPoolConfig) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
-
Sets the configuration.
- setConfig(GenericObjectPoolConfig) - Method in class org.apache.commons.pool2.impl.GenericObjectPool
-
Sets the base pool configuration.
- 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
-
Set the value for the
evictionPolicyClassName
configuration attribute for pools created with this configuration instance. - setFairness(boolean) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
-
Set 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) behaviour 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
-
Set 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
-
Is abandoned object tracking being used? If this is true the implementation will need to record the stack trace of the last caller to borrow this object.
- 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
-
Returns 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. - setMaxWaitMillis(long) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
Sets the maximum amount of time (in milliseconds) the
borrowObject()
method should block before throwing an exception when the pool is exhausted andBaseGenericObjectPool.getBlockWhenExhausted()
is true. - setMaxWaitMillis(long) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
-
Set the value for the
maxWait
configuration attribute for pools created with this configuration instance. - setMinEvictableIdleTimeMillis(long) - 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.setTimeBetweenEvictionRunsMillis(long)
). - setMinEvictableIdleTimeMillis(long) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
-
Set the value for the
minEvictableIdleTimeMillis
configuration attribute for pools created with this configuration instance. - 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
-
Set 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
-
Sets the timeout in seconds before an abandoned object can be removed
- setSoftMinEvictableIdleTimeMillis(long) - 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.setTimeBetweenEvictionRunsMillis(long)
), with the extra condition that at leastminIdle
object instances remain in the pool. - setSoftMinEvictableIdleTimeMillis(long) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
-
Set the value for the
softMinEvictableIdleTimeMillis
configuration attribute for pools created with this configuration instance. - setSwallowedExceptionListener(SwallowedExceptionListener) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
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
-
Set 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
-
Set 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
-
Set 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
-
Returns whether objects sitting idle in the pool will be validated by the idle object evictor (if any - see
BaseGenericObjectPool.setTimeBetweenEvictionRunsMillis(long)
). - setTestWhileIdle(boolean) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
-
Set the value for the
testWhileIdle
configuration attribute for pools created with this configuration instance. - setTimeBetweenEvictionRunsMillis(long) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
Sets the number of milliseconds to sleep between runs of the idle object evictor thread.
- setTimeBetweenEvictionRunsMillis(long) - Method in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
-
Set the value for the
timeBetweenEvictionRunsMillis
configuration attribute for pools created with this configuration instance. - 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
-
A
SoftReference
basedObjectPool
. - SoftReferenceObjectPool(PooledObjectFactory<T>) - Constructor for class org.apache.commons.pool2.impl.SoftReferenceObjectPool
-
Create 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
-
Attempt 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 KeyedPoolableObjectFactory.
- 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
- toString() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
- toString() - Method in class org.apache.commons.pool2.impl.PooledSoftReference
-
Provides a String form of the wrapper for debug purposes.
- toString() - Method in interface org.apache.commons.pool2.PooledObject
-
Provides a String form of the wrapper for debug purposes.
- TrackedUse - Interface in org.apache.commons.pool2
-
This interface 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
-
Record the current stack trace as the last time the object was used.
- use(T) - Method in class org.apache.commons.pool2.impl.GenericObjectPool
- use(T) - Method in interface org.apache.commons.pool2.UsageTracking
-
This method is called every time a pooled object 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
-
This implementation 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.PooledObjectState
-
Returns the enum constant of this type with the specified name.
- 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
-
Wrap the provided instance with an implementation of
PooledObject
. - wrap(V) - Method in class org.apache.commons.pool2.BaseKeyedPooledObjectFactory
-
Wrap the provided instance with an implementation of
PooledObject
.
All Classes and Interfaces|All Packages|Constant Field Values