- 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(ObjectPool<T>, int, long) - Static method in class org.apache.commons.pool2.PoolUtils
-
Periodically check the idle object count for the pool.
- 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(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.
- 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
-
- 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() - Method in class org.apache.commons.pool2.impl.GenericObjectPool
-
- 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(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() - 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(K) - Method in class org.apache.commons.pool2.proxy.ProxiedKeyedObjectPool
-
- clear() - Method in class org.apache.commons.pool2.proxy.ProxiedObjectPool
-
- 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(K) - Method in class org.apache.commons.pool2.BaseKeyedPooledObjectFactory
-
Create an instance that can be served by the pool.
- create() - Method in class org.apache.commons.pool2.BasePooledObjectFactory
-
Creates an object instance, to be wrapped in a
PooledObject
.
- 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
-
- deallocate() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
-
Deallocates the object and sets it
IDLE
if it is currently
ALLOCATED
.
- 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_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(PooledObject<T>) - Method in class org.apache.commons.pool2.BasePooledObjectFactory
-
No-op.
- 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 interface org.apache.commons.pool2.PooledObjectFactory
-
Destroys an instance no longer needed by the pool.
- 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
-
- 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
-
- 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
-
- GenericObjectPool(PooledObjectFactory<T>) - Constructor for class org.apache.commons.pool2.impl.GenericObjectPool
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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(K) - 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(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() - 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(K) - Method in class org.apache.commons.pool2.proxy.ProxiedKeyedObjectPool
-
- getNumActive() - Method in class org.apache.commons.pool2.proxy.ProxiedKeyedObjectPool
-
- getNumActive() - Method in class org.apache.commons.pool2.proxy.ProxiedObjectPool
-
- 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(K) - 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(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() - 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(K) - Method in class org.apache.commons.pool2.proxy.ProxiedKeyedObjectPool
-
- getNumIdle() - Method in class org.apache.commons.pool2.proxy.ProxiedKeyedObjectPool
-
- getNumIdle() - Method in class org.apache.commons.pool2.proxy.ProxiedObjectPool
-
- 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
-
- 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
-
- 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?
- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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(ObjectPool<T>) - Static method in class org.apache.commons.pool2.PoolUtils
-
Returns a synchronized (thread-safe) ObjectPool backed by the specified
ObjectPool.
- synchronizedPool(KeyedObjectPool<K, V>) - Static method in class org.apache.commons.pool2.PoolUtils
-
Returns a synchronized (thread-safe) KeyedObjectPool backed by the
specified KeyedObjectPool.
- synchronizedPooledFactory(PooledObjectFactory<T>) - Static method in class org.apache.commons.pool2.PoolUtils
-
Returns a synchronized (thread-safe) PooledObjectFactory backed by the
specified PooledObjectFactory.