A B C D E F G H I J K L M N O P R S T U V W _
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- ABANDONED - org.apache.commons.pool2.PooledObjectState
-
Deemed abandoned, to be invalidated.
- abandonedConfig - Variable in class org.apache.commons.pool2.impl.GenericObjectPool
- AbandonedConfig - Class in org.apache.commons.pool2.impl
-
Configuration settings for abandoned object removal.
- AbandonedConfig() - Constructor for class org.apache.commons.pool2.impl.AbandonedConfig
- AbandonedObjectCreatedException() - Constructor for exception org.apache.commons.pool2.impl.DefaultPooledObject.AbandonedObjectCreatedException
-
Create a new instance.
- AbstractItr() - Constructor for class org.apache.commons.pool2.impl.LinkedBlockingDeque.AbstractItr
-
Create a new iterator.
- 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(K, PooledObject<V>) - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedKeyedPooledObjectFactory
-
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.
- activateObject(PooledObject<T>) - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedPooledObjectFactory
-
Reinitialize an instance to be returned by the pool.
- activeTimes - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- add(long) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool.StatsStore
-
Adds a value to the cache.
- add(E) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- addFirst(E) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- addIdleObject(K, PooledObject<T>) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
-
Add an object to the set of idle objects for a given key.
- addIdleObject(PooledObject<T>) - Method in class org.apache.commons.pool2.impl.GenericObjectPool
-
Add the provided wrapped pooled object to the set of idle objects for this pool.
- addLast(E) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- 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.PoolUtils.ErodingObjectPool
-
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.PoolUtils.SynchronizedObjectPool
-
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.PoolUtils.ErodingKeyedObjectPool
-
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.PoolUtils.SynchronizedKeyedObjectPool
-
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
- advance() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque.AbstractItr
-
Advances next.
- allObjects - Variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPool.ObjectDeque
- allObjects - Variable in class org.apache.commons.pool2.impl.GenericObjectPool
- 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 - org.apache.commons.pool2.PooledObjectState
-
In use.
- allReferences - Variable in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
-
All references - checked out or waiting to be borrowed.
- assertOpen() - Method in class org.apache.commons.pool2.BaseObjectPool
-
Throws an
IllegalStateException
when this pool has been closed. - assertOpen() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
Verifies that the pool is open.
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.
- BaseGenericObjectPool.EvictionIterator - Class in org.apache.commons.pool2.impl
-
The idle object eviction iterator.
- BaseGenericObjectPool.Evictor - Class in org.apache.commons.pool2.impl
-
The idle object evictor
TimerTask
. - BaseGenericObjectPool.IdentityWrapper<T> - Class in org.apache.commons.pool2.impl
-
Wrapper for objects under management by the pool.
- BaseGenericObjectPool.StatsStore - Class in org.apache.commons.pool2.impl
-
Maintains a cache of values for a single metric and reports statistics on the cached values.
- 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
- BaseProxyHandler<T> - Class in org.apache.commons.pool2.proxy
-
Base implementation for object wrappers when using a
ProxiedObjectPool
. - BaseProxyHandler(T, UsageTracking<T>) - Constructor for class org.apache.commons.pool2.proxy.BaseProxyHandler
-
Create a new wrapper for the given pooled object.
- blockWhenExhausted - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- blockWhenExhausted - Variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
- borrowedBy - Variable in class org.apache.commons.pool2.impl.DefaultPooledObject
- borrowedCount - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- borrowedCount - Variable in class org.apache.commons.pool2.impl.DefaultPooledObject
- 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.PoolUtils.ErodingObjectPool
-
Obtains an instance from this pool.
- borrowObject() - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedObjectPool
-
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.PoolUtils.ErodingKeyedObjectPool
-
Obtains an instance from this pool for the specified
key
. - borrowObject(K) - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedKeyedObjectPool
-
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
- calculateDeficit(GenericKeyedObjectPool.ObjectDeque<T>) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
-
Calculate the number of objects that need to be created to attempt to maintain the minimum number of idle objects while not exceeded the limits on the maximum number of objects either per key or totally.
- cancel(TimerTask) - Static method in class org.apache.commons.pool2.impl.EvictionTimer
-
Remove the specified eviction task from the timer.
- capacity - Variable in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Maximum number of items in the deque
- CglibProxyHandler<T> - Class in org.apache.commons.pool2.proxy
-
CGLib implementation of the proxy handler.
- CglibProxyHandler(T, UsageTracking<T>) - Constructor for class org.apache.commons.pool2.proxy.CglibProxyHandler
-
Create a CGLib proxy instance.
- 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).
- cl - Variable in class org.apache.commons.pool2.impl.EvictionTimer.PrivilegedSetTccl
-
ClassLoader
- classLoader - Variable in class org.apache.commons.pool2.proxy.JdkProxySource
- 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.LinkedBlockingDeque
-
Atomically removes all of the elements from this deque.
- 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.PoolUtils.ErodingKeyedObjectPool
-
Clears the pool, removing all pooled instances (optional operation).
- clear() - Method in class org.apache.commons.pool2.PoolUtils.ErodingObjectPool
-
Clears any objects sitting idle in the pool, releasing any associated resources (optional operation).
- clear() - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedKeyedObjectPool
-
Clears the pool, removing all pooled instances (optional operation).
- clear() - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedObjectPool
-
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.PoolUtils.ErodingKeyedObjectPool
-
Clears the specified pool, removing all pooled instances corresponding to the given
key
(optional operation). - clear(K) - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedKeyedObjectPool
-
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.PoolUtils.ErodingKeyedObjectPool
-
Close this pool, and free any resources associated with it.
- close() - Method in class org.apache.commons.pool2.PoolUtils.ErodingObjectPool
-
Close this pool, and free any resources associated with it.
- close() - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedKeyedObjectPool
-
Close this pool, and free any resources associated with it.
- close() - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedObjectPool
-
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
- closed - Variable in class org.apache.commons.pool2.BaseObjectPool
- closed - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- closeLock - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- 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.
- contains(Object) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Returns
true
if this deque contains the specified element. - count - Variable in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Number of items in the deque
- create() - Method in class org.apache.commons.pool2.BasePooledObjectFactory
-
Creates an object instance, to be wrapped in a
PooledObject
. - create() - Method in class org.apache.commons.pool2.impl.GenericObjectPool
-
Attempts to create a new wrapped pooled object.
- create(K) - Method in class org.apache.commons.pool2.BaseKeyedPooledObjectFactory
-
Create an instance that can be served by the pool.
- create(K) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
-
Create a new pooled object.
- createCount - Variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPool.ObjectDeque
- createCount - Variable in class org.apache.commons.pool2.impl.GenericObjectPool
- createCount - Variable in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
-
Total number of instances that have been created
- createdCount - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- 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
- createProxy(T, UsageTracking<T>) - Method in interface org.apache.commons.pool2.proxy.ProxySource
-
Create a new proxy object, wrapping the given pooled object.
- createTime - Variable in class org.apache.commons.pool2.impl.DefaultPooledObject
- creationStackTrace - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
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.
- DefaultPooledObject.AbandonedObjectCreatedException - Exception in org.apache.commons.pool2.impl
-
Used to track how an object was obtained from the pool (the stack trace of the exception will show which code borrowed the object) and when the object was borrowed.
- 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.
- deregister(K) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
-
De-register the use of a key by an object.
- descendingIterator() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- DescendingItr() - Constructor for class org.apache.commons.pool2.impl.LinkedBlockingDeque.DescendingItr
- destroy(K, PooledObject<T>, boolean) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
-
Destroy the wrapped, pooled object.
- destroy(PooledSoftReference<T>) - Method in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
-
Destroy a
PooledSoftReference
and remove it from the idle and all references pools. - destroy(PooledObject<T>) - Method in class org.apache.commons.pool2.impl.GenericObjectPool
-
Destroys a wrapped pooled object.
- destroyCount - Variable in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
-
Total number of instances that have been destroyed
- destroyedByBorrowValidationCount - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- destroyedByEvictorCount - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- destroyedCount - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- 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(K, PooledObject<V>) - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedKeyedPooledObjectFactory
-
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.
- destroyObject(PooledObject<T>) - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedPooledObjectFactory
-
Destroys an instance no longer needed by the pool.
- disableProxy() - Method in class org.apache.commons.pool2.proxy.BaseProxyHandler
-
Disable the proxy wrapper.
- doInvoke(Method, Object[]) - Method in class org.apache.commons.pool2.proxy.BaseProxyHandler
-
Invoke the given method on the wrapped object.
- drainTo(Collection<? super E>) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Empty the queue to the specified collection.
- drainTo(Collection<? super E>, int) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Empty no more than the specified number of elements from the queue to the specified collection.
E
- element() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Retrieves, but does not remove, the head of the queue represented by this deque.
- 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.
- ensureIdle(int, boolean) - Method in class org.apache.commons.pool2.impl.GenericObjectPool
-
Tries to ensure that
idleCount
idle instances exist in the pool. - ensureMinIdle() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
Tries to ensure that the configured minimum number of idle instances are available in the pool.
- ensureMinIdle() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
- ensureMinIdle() - Method in class org.apache.commons.pool2.impl.GenericObjectPool
- ensureMinIdle(K) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
-
Ensure that the configured number of minimum idle objects is available in the pool for the given key.
- equals(Object) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool.IdentityWrapper
- equals(Object) - Method in interface org.apache.commons.pool2.PooledObject
- erodingFactor - Variable in class org.apache.commons.pool2.PoolUtils.ErodingKeyedObjectPool
-
Erosion factor
- ErodingFactor(float) - Constructor for class org.apache.commons.pool2.PoolUtils.ErodingFactor
-
Create a new ErodingFactor with the given erosion factor.
- ErodingKeyedObjectPool(KeyedObjectPool<K, V>, float) - Constructor for class org.apache.commons.pool2.PoolUtils.ErodingKeyedObjectPool
-
Create an ErodingObjectPool wrapping the given pool using the specified erosion factor.
- ErodingKeyedObjectPool(KeyedObjectPool<K, V>, PoolUtils.ErodingFactor) - Constructor for class org.apache.commons.pool2.PoolUtils.ErodingKeyedObjectPool
-
Create an ErodingObjectPool wrapping the given pool using the specified erosion factor.
- ErodingObjectPool(ObjectPool<T>, float) - Constructor for class org.apache.commons.pool2.PoolUtils.ErodingObjectPool
-
Create an ErodingObjectPool wrapping the given pool using the specified erosion factor.
- ErodingPerKeyKeyedObjectPool(KeyedObjectPool<K, V>, float) - Constructor for class org.apache.commons.pool2.PoolUtils.ErodingPerKeyKeyedObjectPool
-
Create a new ErordingPerKeyKeyedObjectPool decorating the given keyed pool with the specified erosion factor.
- 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 - org.apache.commons.pool2.PooledObjectState
-
In the queue, currently being tested for possible eviction.
- EVICTION_RETURN_TO_HEAD - 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.
- evictionIterator - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- EvictionIterator(Deque<PooledObject<T>>) - Constructor for class org.apache.commons.pool2.impl.BaseGenericObjectPool.EvictionIterator
-
Create an EvictionIterator for the provided idle instance deque.
- evictionKey - Variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
- evictionKeyIterator - Variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
- evictionLock - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- evictionPolicy - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- EvictionPolicy<T> - Interface in org.apache.commons.pool2.impl
-
To provide a custom eviction policy (i.e.
- evictionPolicyClassName - Variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
- EvictionTimer - Class in org.apache.commons.pool2.impl
-
Provides a shared idle object eviction timer for all pools.
- EvictionTimer() - Constructor for class org.apache.commons.pool2.impl.EvictionTimer
-
Prevent instantiation
- EvictionTimer.PrivilegedGetTccl - Class in org.apache.commons.pool2.impl
-
PrivilegedAction
used to get the ContextClassLoader - EvictionTimer.PrivilegedNewEvictionTimer - Class in org.apache.commons.pool2.impl
-
PrivilegedAction
used to create a new Timer. - EvictionTimer.PrivilegedSetTccl - Class in org.apache.commons.pool2.impl
-
PrivilegedAction
used to set the ContextClassLoader - evictor - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- Evictor() - Constructor for class org.apache.commons.pool2.impl.BaseGenericObjectPool.Evictor
F
- factor - Variable in class org.apache.commons.pool2.PoolUtils.ErodingFactor
-
Determines frequency of "erosion" events
- factor - Variable in class org.apache.commons.pool2.PoolUtils.ErodingObjectPool
-
Erosion factor
- factor - Variable in class org.apache.commons.pool2.PoolUtils.ErodingPerKeyKeyedObjectPool
-
Erosion factor - same for all pools
- factors - Variable in class org.apache.commons.pool2.PoolUtils.ErodingPerKeyKeyedObjectPool
-
Map of ErodingFactor instances keyed on pool keys
- factory - Variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
- factory - Variable in class org.apache.commons.pool2.impl.GenericObjectPool
- factory - Variable in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
-
Factory to source pooled objects
- factory - Variable in class org.apache.commons.pool2.PoolUtils.SynchronizedPooledObjectFactory
-
Wrapped factory
- factoryClassLoader - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- factoryType - Variable in class org.apache.commons.pool2.impl.GenericObjectPool
- fairness - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- fairness - Variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
- fairness - Variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
- findReference(T) - Method in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
-
Find the PooledSoftReference in allReferences that points to obj.
- first - Variable in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Pointer to first node.
- firstNode() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque.AbstractItr
-
Obtain the first node to be returned by the iterator.
- firstNode() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque.DescendingItr
- firstNode() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque.Itr
- format - Static variable in exception org.apache.commons.pool2.impl.DefaultPooledObject.AbandonedObjectCreatedException
-
Date format
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. - GenericKeyedObjectPool.ObjectDeque<S> - Class in org.apache.commons.pool2.impl
-
Maintains information on the per key queue for a given key.
- 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).
- getAllObjects() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool.ObjectDeque
-
Obtain all the objects for the current key.
- 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
- getCreateCount() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool.ObjectDeque
-
Obtain the count of the number of objects created for the current key.
- 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
- getErodingFactor(K) - Method in class org.apache.commons.pool2.PoolUtils.ErodingKeyedObjectPool
-
Returns the eroding factor for the given key
- getErodingFactor(K) - Method in class org.apache.commons.pool2.PoolUtils.ErodingPerKeyKeyedObjectPool
-
Returns the eroding factor for the given key
- getEvictionPolicy() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
Returns the
EvictionPolicy
defined for this pool. - 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
- getFactoryType(Class<? extends PooledObjectFactory>) - Static method in class org.apache.commons.pool2.impl.PoolImplUtils
-
Identifies the concrete type of object that an object factory creates.
- 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
- getFirst() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- getGenericType(Class<T>, Class<? extends T>) - Static method in class org.apache.commons.pool2.impl.PoolImplUtils
-
Obtain the concrete type used by an implementation of an interface that uses a generic type.
- getIdleEvictTime() - Method in class org.apache.commons.pool2.impl.EvictionConfig
-
Obtain the
idleEvictTime
for this eviction configuration instance. - getIdleObjects() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool.EvictionIterator
-
Returns the idle object deque referenced by this iterator.
- getIdleObjects() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool.ObjectDeque
-
Obtain the idle objects for the current key.
- 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.
- getKeyedPool() - Method in class org.apache.commons.pool2.PoolUtils.ErodingKeyedObjectPool
-
Returns the underlying pool
- getLast() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- 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
- getMean() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool.StatsStore
-
Returns the mean of the cached values.
- 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
- getMessage() - Method in exception org.apache.commons.pool2.impl.DefaultPooledObject.AbandonedObjectCreatedException
- 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
- getMinIdleTimer() - Static method in class org.apache.commons.pool2.PoolUtils
-
Get the
Timer
for checking keyedPool's idle count. - getNextShrink() - Method in class org.apache.commons.pool2.PoolUtils.ErodingFactor
-
Returns the time of the next erosion event.
- 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.PoolUtils.ErodingKeyedObjectPool
-
Returns the total number of instances current borrowed from this pool but not yet returned.
- getNumActive() - Method in class org.apache.commons.pool2.PoolUtils.ErodingObjectPool
-
Return the number of instances currently borrowed from this pool.
- getNumActive() - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedKeyedObjectPool
-
Returns the total number of instances current borrowed from this pool but not yet returned.
- getNumActive() - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedObjectPool
-
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.PoolUtils.ErodingKeyedObjectPool
-
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.PoolUtils.SynchronizedKeyedObjectPool
-
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.PoolUtils.ErodingKeyedObjectPool
-
Returns the total number of instances currently idle in this pool.
- getNumIdle() - Method in class org.apache.commons.pool2.PoolUtils.ErodingObjectPool
-
Return the number of instances currently idle in this pool.
- getNumIdle() - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedKeyedObjectPool
-
Returns the total number of instances currently idle in this pool.
- getNumIdle() - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedObjectPool
-
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.PoolUtils.ErodingKeyedObjectPool
-
Returns the number of instances corresponding to the given
key
currently idle in this pool. - getNumIdle(K) - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedKeyedObjectPool
-
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
- getNumInterested() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool.ObjectDeque
-
Obtain the number of threads with an interest registered in this key.
- getNumTests() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
-
Calculate the number of objects to test in a run of the idle object evictor.
- getNumTests() - Method in class org.apache.commons.pool2.impl.GenericObjectPool
-
Calculate the number of objects to test in a run of the idle object evictor.
- 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.BaseGenericObjectPool.IdentityWrapper
- 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
. - getPooledObject() - Method in class org.apache.commons.pool2.proxy.BaseProxyHandler
-
Obtain the wrapped, pooled object.
- 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. - getStackTrace(Exception) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
Gets the stack trace of an exception as a string.
- 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.
- getTakeQueueLength() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Returns the length of the queue of threads waiting to take instances from this deque.
- 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
- getTypeParameter(Class<?>, Type) - Static method in class org.apache.commons.pool2.impl.PoolImplUtils
-
For a generic parameter, return either the Class used or if the type is unknown, the index for the type in definition of the class
- 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
- hasBorrowWaiters() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
-
Checks to see if there are any threads currently waiting to borrow objects but are blocked waiting for more objects to become available.
- hashCode() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool.IdentityWrapper
- hashCode() - Method in interface org.apache.commons.pool2.PooledObject
- hasNext() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool.EvictionIterator
- hasNext() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque.AbstractItr
- hasTakeWaiters() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Returns true if there are threads waiting to take instances from this deque.
I
- IdentityWrapper(T) - Constructor for class org.apache.commons.pool2.impl.BaseGenericObjectPool.IdentityWrapper
-
Create a wrapper for an instance.
- IDLE - org.apache.commons.pool2.PooledObjectState
-
In the queue, not in use.
- idleEvictTime - Variable in class org.apache.commons.pool2.impl.EvictionConfig
- idleHighWaterMark - Variable in class org.apache.commons.pool2.PoolUtils.ErodingFactor
-
High water mark - largest numIdle encountered
- idleObjectIterator - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool.EvictionIterator
- idleObjects - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool.EvictionIterator
- idleObjects - Variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPool.ObjectDeque
- idleObjects - Variable in class org.apache.commons.pool2.impl.GenericObjectPool
- idleReferences - Variable in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
-
Idle references - waiting to be borrowed
- idleSoftEvictTime - Variable in class org.apache.commons.pool2.impl.EvictionConfig
- idleTimes - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- index - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool.StatsStore
- instance - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool.IdentityWrapper
-
Wrapped object
- intercept(Object, Method, Object[], MethodProxy) - Method in class org.apache.commons.pool2.proxy.CglibProxyHandler
- interfaces - Variable in class org.apache.commons.pool2.proxy.JdkProxySource
- InterruptibleReentrantLock - Class in org.apache.commons.pool2.impl
-
This sub-class was created to expose the waiting threads so that they can be interrupted when the pool using the queue that uses this lock is closed.
- InterruptibleReentrantLock(boolean) - Constructor for class org.apache.commons.pool2.impl.InterruptibleReentrantLock
-
Create a new InterruptibleReentrantLock with the given fairness policy.
- interruptWaiters(Condition) - Method in class org.apache.commons.pool2.impl.InterruptibleReentrantLock
-
Interrupt the threads that are waiting on a specific condition
- interuptTakeWaiters() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Interrupts the threads currently waiting to take an object from the pool.
- INVALID - 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.PoolUtils.ErodingKeyedObjectPool
-
Invalidates an object from the pool.
- invalidateObject(K, V) - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedKeyedObjectPool
-
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.PoolUtils.ErodingObjectPool
-
Invalidates an object from the pool.
- invalidateObject(T) - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedObjectPool
-
Invalidates an object from the pool.
- invalidateObject(T) - Method in class org.apache.commons.pool2.proxy.ProxiedObjectPool
- invoke(Object, Method, Object[]) - Method in class org.apache.commons.pool2.proxy.JdkProxyHandler
- 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
- item - Variable in class org.apache.commons.pool2.impl.LinkedBlockingDeque.Node
-
The item, or null if this node has been removed.
- iterator() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Returns an iterator over the elements in this deque in proper sequence.
- Itr() - Constructor for class org.apache.commons.pool2.impl.LinkedBlockingDeque.Itr
J
- JdkProxyHandler<T> - Class in org.apache.commons.pool2.proxy
-
Java reflection implementation of the proxy handler.
- JdkProxyHandler(T, UsageTracking<T>) - Constructor for class org.apache.commons.pool2.proxy.JdkProxyHandler
-
Create a Java reflection proxy instance.
- 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.
- jmxEnabled - Variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
- jmxNameBase - Variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
- jmxNamePrefix - Variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
- jmxRegister(BaseObjectPoolConfig, String, String) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
Registers the pool with the platform MBean server.
- jmxUnregister() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
Unregisters this pool's MBean.
K
- key - Variable in class org.apache.commons.pool2.PoolUtils.KeyedObjectPoolMinIdleTimerTask
-
Key to ensure minIdle for
- keyedFactory - Variable in class org.apache.commons.pool2.PoolUtils.SynchronizedKeyedPooledObjectFactory
-
Wrapped factory
- KeyedObjectPool<K,V> - Interface in org.apache.commons.pool2
-
A "keyed" pooling interface.
- KeyedObjectPoolMinIdleTimerTask(KeyedObjectPool<K, V>, K, int) - Constructor for class org.apache.commons.pool2.PoolUtils.KeyedObjectPoolMinIdleTimerTask
-
Create a new KeyedObjecPoolMinIdleTimerTask.
- keyedPool - Variable in class org.apache.commons.pool2.PoolUtils.ErodingKeyedObjectPool
-
Underlying pool
- keyedPool - Variable in class org.apache.commons.pool2.PoolUtils.KeyedObjectPoolMinIdleTimerTask
-
Keyed object pool
- keyedPool - Variable in class org.apache.commons.pool2.PoolUtils.SynchronizedKeyedObjectPool
-
Underlying object pool
- KeyedPooledObjectFactory<K,V> - Interface in org.apache.commons.pool2
-
An interface defining life-cycle methods for instances to be served by a
KeyedObjectPool
. - keyLock - Variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
L
- last - Variable in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Pointer to last node.
- lastBorrowTime - Variable in class org.apache.commons.pool2.impl.DefaultPooledObject
- lastRet - Variable in class org.apache.commons.pool2.impl.LinkedBlockingDeque.AbstractItr
-
Node returned by most recent call to next.
- lastReturnTime - Variable in class org.apache.commons.pool2.impl.DefaultPooledObject
- lastUseTime - Variable in class org.apache.commons.pool2.impl.DefaultPooledObject
- lifo - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- lifo - Variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
- LinkedBlockingDeque<E> - Class in org.apache.commons.pool2.impl
-
An optionally-bounded blocking deque based on linked nodes.
- LinkedBlockingDeque() - Constructor for class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Creates a
LinkedBlockingDeque
with a capacity ofInteger.MAX_VALUE
. - LinkedBlockingDeque(boolean) - Constructor for class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Creates a
LinkedBlockingDeque
with a capacity ofInteger.MAX_VALUE
and the given fairness policy. - LinkedBlockingDeque(int) - Constructor for class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Creates a
LinkedBlockingDeque
with the given (fixed) capacity. - LinkedBlockingDeque(int, boolean) - Constructor for class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Creates a
LinkedBlockingDeque
with the given (fixed) capacity and fairness policy. - LinkedBlockingDeque(Collection<? extends E>) - Constructor for class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Creates a
LinkedBlockingDeque
with a capacity ofInteger.MAX_VALUE
, initially containing the elements of the given collection, added in traversal order of the collection's iterator. - LinkedBlockingDeque.AbstractItr - Class in org.apache.commons.pool2.impl
-
Base class for Iterators for LinkedBlockingDeque
- LinkedBlockingDeque.DescendingItr - Class in org.apache.commons.pool2.impl
-
Descending iterator
- LinkedBlockingDeque.Itr - Class in org.apache.commons.pool2.impl
-
Forward iterator
- LinkedBlockingDeque.Node<E> - Class in org.apache.commons.pool2.impl
-
Doubly-linked list node class
- linkFirst(E) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Links provided element as first element, or returns false if full.
- linkLast(E) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Links provided element as last element, or returns false if full.
- 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
- lock - Variable in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Main lock guarding all access
- logAbandoned - Variable in class org.apache.commons.pool2.impl.AbandonedConfig
-
Determines whether or not to log stack traces for application code which abandoned an object.
- logAbandoned - Variable in class org.apache.commons.pool2.impl.DefaultPooledObject
- logWriter - Variable in class org.apache.commons.pool2.impl.AbandonedConfig
-
PrintWriter to use to log information on abandoned objects.
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() - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedPooledObjectFactory
-
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. - makeObject(K) - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedKeyedPooledObjectFactory
-
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.
- maxBorrowWaitTimeMillis - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- maxIdle - Variable in class org.apache.commons.pool2.impl.GenericObjectPool
- maxIdle - Variable in class org.apache.commons.pool2.impl.GenericObjectPoolConfig
- maxIdlePerKey - Variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
- maxIdlePerKey - Variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig
- maxTotal - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- maxTotal - Variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig
- maxTotal - Variable in class org.apache.commons.pool2.impl.GenericObjectPoolConfig
- maxTotalPerKey - Variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
- maxTotalPerKey - Variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig
- maxWaitMillis - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- maxWaitMillis - Variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
- 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.
- MIN_IDLE_TIMER - Static variable in class org.apache.commons.pool2.PoolUtils.TimerHolder
- minEvictableIdleTimeMillis - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- minEvictableIdleTimeMillis - Variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
- minIdle - Variable in class org.apache.commons.pool2.impl.EvictionConfig
- minIdle - Variable in class org.apache.commons.pool2.impl.GenericObjectPool
- minIdle - Variable in class org.apache.commons.pool2.impl.GenericObjectPoolConfig
- minIdle - Variable in class org.apache.commons.pool2.PoolUtils.KeyedObjectPoolMinIdleTimerTask
-
Minimum number of idle instances.
- minIdle - Variable in class org.apache.commons.pool2.PoolUtils.ObjectPoolMinIdleTimerTask
-
Minimum number of idle instances.
- minIdlePerKey - Variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
- minIdlePerKey - Variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig
N
- next - Variable in class org.apache.commons.pool2.impl.LinkedBlockingDeque.AbstractItr
-
The next node to return in next()
- next - Variable in class org.apache.commons.pool2.impl.LinkedBlockingDeque.Node
-
One of: - the real successor Node - this Node, meaning the successor is head - null, meaning there is no successor
- next() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool.EvictionIterator
- next() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque.AbstractItr
- nextItem - Variable in class org.apache.commons.pool2.impl.LinkedBlockingDeque.AbstractItr
-
nextItem holds on to item fields because once we claim that an element exists in hasNext(), we must return item read under lock (in advance()) even if it was in the process of being removed when hasNext() was called.
- nextNode(LinkedBlockingDeque.Node<E>) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque.AbstractItr
-
For a given node, obtain the next node to be returned by the iterator.
- nextNode(LinkedBlockingDeque.Node<E>) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque.DescendingItr
- nextNode(LinkedBlockingDeque.Node<E>) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque.Itr
- nextShrink - Variable in class org.apache.commons.pool2.PoolUtils.ErodingFactor
-
Time of next shrink event
- Node(E, LinkedBlockingDeque.Node<E>, LinkedBlockingDeque.Node<E>) - Constructor for class org.apache.commons.pool2.impl.LinkedBlockingDeque.Node
-
Create a new list node.
- notEmpty - Variable in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Condition for waiting takes
- notFull - Variable in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Condition for waiting puts
- numActive - Variable in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
-
Count of instances that have been checkout out to pool clients
- numInterested - Variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPool.ObjectDeque
- numTestsPerEvictionRun - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- numTestsPerEvictionRun - Variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
- numTotal - Variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
O
- object - Variable in class org.apache.commons.pool2.impl.DefaultPooledObject
- ObjectDeque(boolean) - Constructor for class org.apache.commons.pool2.impl.GenericKeyedObjectPool.ObjectDeque
-
Create a new ObjecDeque with the given fairness policy.
- ObjectPool<T> - Interface in org.apache.commons.pool2
-
A pooling simple interface.
- ObjectPoolMinIdleTimerTask(ObjectPool<T>, int) - Constructor for class org.apache.commons.pool2.PoolUtils.ObjectPoolMinIdleTimerTask
-
Create a new ObjectPoolMinIdleTimerTask for the given pool with the given minIdle setting.
- offer(E) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- offer(E, long, TimeUnit) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Links the provided element as the last in the queue, waiting up to the specified time to do so if the queue is full.
- offerFirst(E) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- offerFirst(E, long, TimeUnit) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Links the provided element as the first in the queue, waiting up to the specified time to do so if the queue is full.
- offerLast(E) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- offerLast(E, long, TimeUnit) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Links the provided element as the last in the queue, waiting up to the specified time to do so if the queue is full.
- oname - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- ONAME_BASE - Static variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
- ONAME_BASE - Static variable in class org.apache.commons.pool2.impl.GenericObjectPool
- 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(K, PooledObject<V>) - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedKeyedPooledObjectFactory
-
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.
- passivateObject(PooledObject<T>) - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedPooledObjectFactory
-
Uninitialize an instance to be returned to the idle object pool.
- peek() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- peekFirst() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- peekLast() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- poll() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- poll(long, TimeUnit) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Unlinks the first element in the queue, waiting up to the specified time to do so if the queue is empty.
- pollFirst() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- pollFirst(long, TimeUnit) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Unlinks the first element in the queue, waiting up to the specified time to do so if the queue is empty.
- pollLast() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- pollLast(long, TimeUnit) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Unlinks the last element in the queue, waiting up to the specified time to do so if the queue is empty.
- pool - Variable in class org.apache.commons.pool2.PoolUtils.ErodingObjectPool
-
Underlying object pool
- pool - Variable in class org.apache.commons.pool2.PoolUtils.ObjectPoolMinIdleTimerTask
-
Object pool
- pool - Variable in class org.apache.commons.pool2.PoolUtils.SynchronizedObjectPool
-
the underlying object pool
- pool - Variable in class org.apache.commons.pool2.proxy.ProxiedKeyedObjectPool
- pool - Variable in class org.apache.commons.pool2.proxy.ProxiedObjectPool
- pooledObject - Variable in class org.apache.commons.pool2.impl.DefaultPooledObjectInfo
- pooledObject - Variable in class org.apache.commons.pool2.proxy.BaseProxyHandler
- 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. - PooledObjectState() - Constructor for enum org.apache.commons.pool2.PooledObjectState
- 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.
- PoolImplUtils - Class in org.apache.commons.pool2.impl
-
Implementation specific utilities.
- PoolImplUtils() - Constructor for class org.apache.commons.pool2.impl.PoolImplUtils
- poolKeyList - Variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
- poolMap - Variable in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
- 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.
- PoolUtils.ErodingFactor - Class in org.apache.commons.pool2
-
Encapsulate the logic for when the next poolable object should be discarded.
- PoolUtils.ErodingKeyedObjectPool<K,V> - Class in org.apache.commons.pool2
-
Decorates a keyed object pool, adding "eroding" behavior.
- PoolUtils.ErodingObjectPool<T> - Class in org.apache.commons.pool2
-
Decorates an object pool, adding "eroding" behavior.
- PoolUtils.ErodingPerKeyKeyedObjectPool<K,V> - Class in org.apache.commons.pool2
-
Extends ErodingKeyedObjectPool to allow erosion to take place on a per-key basis.
- PoolUtils.KeyedObjectPoolMinIdleTimerTask<K,V> - Class in org.apache.commons.pool2
-
Timer task that adds objects to the pool until the number of idle instances for the given key reaches the configured minIdle.
- PoolUtils.ObjectPoolMinIdleTimerTask<T> - Class in org.apache.commons.pool2
-
Timer task that adds objects to the pool until the number of idle instances reaches the configured minIdle.
- PoolUtils.SynchronizedKeyedObjectPool<K,V> - Class in org.apache.commons.pool2
-
A synchronized (thread-safe) KeyedObjectPool backed by the specified KeyedObjectPool.
- PoolUtils.SynchronizedKeyedPooledObjectFactory<K,V> - Class in org.apache.commons.pool2
-
A fully synchronized KeyedPooledObjectFactory that wraps a KeyedPooledObjectFactory and synchronizes access to the wrapped factory methods.
- PoolUtils.SynchronizedObjectPool<T> - Class in org.apache.commons.pool2
-
A synchronized (thread-safe) ObjectPool backed by the specified ObjectPool.
- PoolUtils.SynchronizedPooledObjectFactory<T> - Class in org.apache.commons.pool2
-
A fully synchronized PooledObjectFactory that wraps a PooledObjectFactory and synchronizes access to the wrapped factory methods.
- PoolUtils.TimerHolder - Class in org.apache.commons.pool2
-
Timer used to periodically check pools idle object count.
- pop() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- 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. - prev - Variable in class org.apache.commons.pool2.impl.LinkedBlockingDeque.Node
-
One of: - the real predecessor Node - this Node, meaning the predecessor is tail - null, meaning there is no predecessor
- 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.
- PrivilegedGetTccl() - Constructor for class org.apache.commons.pool2.impl.EvictionTimer.PrivilegedGetTccl
- PrivilegedNewEvictionTimer() - Constructor for class org.apache.commons.pool2.impl.EvictionTimer.PrivilegedNewEvictionTimer
- PrivilegedSetTccl(ClassLoader) - Constructor for class org.apache.commons.pool2.impl.EvictionTimer.PrivilegedSetTccl
-
Create a new PrivilegedSetTccl using the given classloader
- 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.
- proxySource - Variable in class org.apache.commons.pool2.proxy.ProxiedKeyedObjectPool
- proxySource - Variable in class org.apache.commons.pool2.proxy.ProxiedObjectPool
- ProxySource<T> - Interface in org.apache.commons.pool2.proxy
-
The interface that any provide of proxy instances must implement to allow the
ProxiedObjectPool
to create proxies as required. - pruneClearedReferences() - Method in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
-
If any idle objects were garbage collected, remove their
Reference
wrappers from the idle object pool. - push(E) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- put(E) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Links the provided element as the last in the queue, waiting until there is space to do so if the queue is full.
- putFirst(E) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Links the provided element as the first in the queue, waiting until there is space to do so if the queue is full.
- putLast(E) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Links the provided element as the last in the queue, waiting until there is space to do so if the queue is full.
R
- readObject(ObjectInputStream) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Reconstitute this deque from a stream (that is, deserialize it).
- readWriteLock - Variable in class org.apache.commons.pool2.PoolUtils.SynchronizedKeyedObjectPool
-
Object whose monitor is used to synchronize methods on the wrapped pool.
- readWriteLock - Variable in class org.apache.commons.pool2.PoolUtils.SynchronizedObjectPool
-
Object whose monitor is used to synchronize methods on the wrapped pool.
- reference - Variable in class org.apache.commons.pool2.impl.PooledSoftReference
-
SoftReference wrapped by this object
- refQueue - Variable in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
-
Queue of broken references that might be able to be removed from
_pool
. - register(K) - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
-
Register the use of a key by an object.
- remainingCapacity() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Returns the number of additional elements that this deque can ideally (in the absence of memory or resource constraints) accept without blocking.
- remove() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool.EvictionIterator
- remove() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque.AbstractItr
- remove() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Retrieves and removes the head of the queue represented by this deque.
- remove(Object) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Removes the first occurrence of the specified element from this deque.
- removeAbandoned(AbandonedConfig) - Method in class org.apache.commons.pool2.impl.GenericObjectPool
-
Recover abandoned objects which have been checked out but not used since longer than the removeAbandonedTimeout.
- removeAbandonedOnBorrow - Variable in class org.apache.commons.pool2.impl.AbandonedConfig
-
Whether or not borrowObject performs abandoned object removal.
- removeAbandonedOnMaintenance - Variable in class org.apache.commons.pool2.impl.AbandonedConfig
-
Whether or not pool maintenance (evictor) performs abandoned object removal.
- removeAbandonedTimeout - Variable in class org.apache.commons.pool2.impl.AbandonedConfig
-
Timeout in seconds before an abandoned object can be removed.
- removeClearedReferences(Iterator<PooledSoftReference<T>>) - Method in class org.apache.commons.pool2.impl.SoftReferenceObjectPool
-
Clears cleared references from iterator's collection
- removeFirst() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- removeFirstOccurrence(Object) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- removeLast() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- removeLastOccurrence(Object) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- resolveProxy(T) - Method in class org.apache.commons.pool2.proxy.CglibProxySource
- resolveProxy(T) - Method in class org.apache.commons.pool2.proxy.JdkProxySource
- resolveProxy(T) - Method in interface org.apache.commons.pool2.proxy.ProxySource
-
Obtain the wrapped object from the given proxy.
- returnedCount - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- RETURNING - 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.PoolUtils.ErodingKeyedObjectPool
-
Returns obj to the pool, unless erosion is triggered, in which case obj is invalidated.
- returnObject(K, V) - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedKeyedObjectPool
-
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.PoolUtils.ErodingObjectPool
-
Returns obj to the pool, unless erosion is triggered, in which case obj is invalidated.
- returnObject(T) - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedObjectPool
-
Return an instance to the pool.
- returnObject(T) - Method in class org.apache.commons.pool2.proxy.ProxiedObjectPool
- reuseCapacity() - Method in class org.apache.commons.pool2.impl.GenericKeyedObjectPool
-
Attempt to create one new instance to serve from the most heavily loaded pool that can add a new instance.
- run() - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool.Evictor
-
Run pool maintenance.
- run() - Method in class org.apache.commons.pool2.impl.EvictionTimer.PrivilegedGetTccl
- run() - Method in class org.apache.commons.pool2.impl.EvictionTimer.PrivilegedNewEvictionTimer
- run() - Method in class org.apache.commons.pool2.impl.EvictionTimer.PrivilegedSetTccl
- run() - Method in class org.apache.commons.pool2.PoolUtils.KeyedObjectPoolMinIdleTimerTask
- run() - Method in class org.apache.commons.pool2.PoolUtils.ObjectPoolMinIdleTimerTask
S
- schedule(TimerTask, long, long) - Static method in class org.apache.commons.pool2.impl.EvictionTimer
-
Add the specified eviction task to the timer.
- serialVersionUID - Static variable in exception org.apache.commons.pool2.impl.DefaultPooledObject.AbandonedObjectCreatedException
- serialVersionUID - Static variable in class org.apache.commons.pool2.impl.InterruptibleReentrantLock
- serialVersionUID - Static variable in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- 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. - size - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool.StatsStore
- size() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Returns the number of elements in this deque.
- softMinEvictableIdleTimeMillis - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- softMinEvictableIdleTimeMillis - Variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
- 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. - startEvictor(long) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
Starts the evictor with the given delay.
- state - Variable in class org.apache.commons.pool2.impl.DefaultPooledObject
- StatsStore(int) - Constructor for class org.apache.commons.pool2.impl.BaseGenericObjectPool.StatsStore
-
Create a StatsStore with the given cache size.
- succ(LinkedBlockingDeque.Node<E>) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque.AbstractItr
-
Returns the successor node of the given non-null, but possibly previously deleted, node.
- superclass - Variable in class org.apache.commons.pool2.proxy.CglibProxySource
- swallowedExceptionListener - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- 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.
- swallowException(Exception) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
Swallows an exception and notifies the configured listener for swallowed exceptions queue.
- SynchronizedKeyedObjectPool(KeyedObjectPool<K, V>) - Constructor for class org.apache.commons.pool2.PoolUtils.SynchronizedKeyedObjectPool
-
Create a new SynchronizedKeyedObjectPool wrapping the given pool
- synchronizedKeyedPooledFactory(KeyedPooledObjectFactory<K, V>) - Static method in class org.apache.commons.pool2.PoolUtils
-
Returns a synchronized (thread-safe) KeyedPooledObjectFactory backed by the specified KeyedPoolableObjectFactory.
- SynchronizedKeyedPooledObjectFactory(KeyedPooledObjectFactory<K, V>) - Constructor for class org.apache.commons.pool2.PoolUtils.SynchronizedKeyedPooledObjectFactory
-
Create a SynchronizedKeyedPoolableObjectFactory wrapping the given factory.
- SynchronizedObjectPool(ObjectPool<T>) - Constructor for class org.apache.commons.pool2.PoolUtils.SynchronizedObjectPool
-
Create a new SynchronizedObjectPool wrapping the given pool.
- 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.
- SynchronizedPooledObjectFactory(PooledObjectFactory<T>) - Constructor for class org.apache.commons.pool2.PoolUtils.SynchronizedPooledObjectFactory
-
Create a SynchronizedPoolableObjectFactory wrapping the given factory.
T
- take() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Unlinks the first element in the queue, waiting until there is an element to unlink if the queue is empty.
- takeFirst() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Unlinks the first element in the queue, waiting until there is an element to unlink if the queue is empty.
- takeLast() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Unlinks the last element in the queue, waiting until there is an element to unlink if the queue is empty.
- testOnBorrow - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- testOnBorrow - Variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
- testOnCreate - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- testOnCreate - Variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
- testOnReturn - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- testOnReturn - Variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
- testWhileIdle - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- testWhileIdle - Variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
- timeBetweenEvictionRunsMillis - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- timeBetweenEvictionRunsMillis - Variable in class org.apache.commons.pool2.impl.BaseObjectPoolConfig
- TimerHolder() - Constructor for class org.apache.commons.pool2.PoolUtils.TimerHolder
- toArray() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Returns an array containing all of the elements in this deque, in proper sequence (from first to last element).
- toArray(T[]) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- toString() - Method in class org.apache.commons.pool2.impl.DefaultPooledObject
- toString() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
- 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.
- toString() - Method in class org.apache.commons.pool2.PoolUtils.ErodingFactor
- toString() - Method in class org.apache.commons.pool2.PoolUtils.ErodingKeyedObjectPool
- toString() - Method in class org.apache.commons.pool2.PoolUtils.ErodingObjectPool
- toString() - Method in class org.apache.commons.pool2.PoolUtils.ErodingPerKeyKeyedObjectPool
- toString() - Method in class org.apache.commons.pool2.PoolUtils.KeyedObjectPoolMinIdleTimerTask
- toString() - Method in class org.apache.commons.pool2.PoolUtils.ObjectPoolMinIdleTimerTask
- toString() - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedKeyedObjectPool
- toString() - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedKeyedPooledObjectFactory
- toString() - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedObjectPool
- toString() - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedPooledObjectFactory
- 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
- unlink(LinkedBlockingDeque.Node<E>) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Unlinks the provided node.
- unlinkFirst() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Removes and returns the first element, or null if empty.
- unlinkLast() - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Removes and returns the last element, or null if empty.
- update(long, int) - Method in class org.apache.commons.pool2.PoolUtils.ErodingFactor
-
Updates internal state using the supplied time and numIdle.
- updateStatsBorrow(PooledObject<T>, long) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
Updates statistics after an object is borrowed from the pool.
- updateStatsReturn(long) - Method in class org.apache.commons.pool2.impl.BaseGenericObjectPool
-
Updates statistics after an object is returned to the pool.
- usageTracking - Variable in class org.apache.commons.pool2.proxy.BaseProxyHandler
- 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.
- usedBy - Variable in class org.apache.commons.pool2.impl.DefaultPooledObject
- useUsageTracking - Variable 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?
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(K, PooledObject<V>) - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedKeyedPooledObjectFactory
-
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.
- validateObject(PooledObject<T>) - Method in class org.apache.commons.pool2.PoolUtils.SynchronizedPooledObjectFactory
-
Ensures that the instance is safe to be returned by the pool.
- validateProxiedObject() - Method in class org.apache.commons.pool2.proxy.BaseProxyHandler
-
Check that the proxy is still valid (i.e.
- VALIDATION - org.apache.commons.pool2.PooledObjectState
-
In the queue, currently being validated.
- VALIDATION_PREALLOCATED - org.apache.commons.pool2.PooledObjectState
-
Not in queue, currently being validated.
- VALIDATION_RETURN_TO_HEAD - 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 - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool.StatsStore
- 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
- waitTimes - Variable in class org.apache.commons.pool2.impl.BaseGenericObjectPool
- 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
. - writeLock - Variable in class org.apache.commons.pool2.PoolUtils.SynchronizedKeyedPooledObjectFactory
-
Synchronization lock
- writeLock - Variable in class org.apache.commons.pool2.PoolUtils.SynchronizedPooledObjectFactory
-
Synchronization lock
- writeObject(ObjectOutputStream) - Method in class org.apache.commons.pool2.impl.LinkedBlockingDeque
-
Save the state of this deque to a stream (that is, serialize it).
_
- _createdTime - Variable in exception org.apache.commons.pool2.impl.DefaultPooledObject.AbandonedObjectCreatedException
- _timer - Static variable in class org.apache.commons.pool2.impl.EvictionTimer
-
Timer instance
- _usageCount - Static variable in class org.apache.commons.pool2.impl.EvictionTimer
-
Static usage count tracker
All Classes All Packages