Reinitialize an instance to be returned by the pool.
Reinitialize an instance to be returned by the pool.
Adapt a KeyedObjectPool
instance to work where an ObjectPool
is needed.
Adapt a KeyedObjectPool
instance to work where an ObjectPool
is needed using the
specified key
when delegating.
Adapt a KeyedPoolableObjectFactory
instance to work where a PoolableObjectFactory
is
needed.
Adapt a KeyedPoolableObjectFactory
instance to work where a PoolableObjectFactory
is
needed using the specified key
when delegating.
Adapt an ObjectPool
to work where an KeyedObjectPool
is needed.
Adapt a PoolableObjectFactory
instance to work where a KeyedPoolableObjectFactory
is
needed.
Not supported in this base implementation.
Create an object, and place it into the pool.
Create an object using my
factory
or other
implementation dependent mechanism, and place it into the pool.
Create an object, and place it into the pool.
Create an object, and place it into the pool.
Not supported in this base implementation.
Create an object using my
factory
or other
implementation dependent mechanism, and place it into the pool.
Wraps an KeyedObjectPool
and dynamically checks the type of objects borrowed and returned to the keyedPool.
Wraps an ObjectPool
and dynamically checks the type of objects borrowed and returned to the keyedPool.
Periodically check the idle object count for each key in the Collection
keys
in the keyedPool.
Periodically check the idle object count for the key in the keyedPool.
Periodically check the idle object count for the keyedPool.
Not supported in this base implementation.
Not supported in this base implementation.
Clears my pool, removing all pooled instances
(optional operation).
Clears any objects sitting idle in the pool, releasing any
associated resources (optional operation).
Not supported in this base implementation.
Clears the specified pool, removing all
pooled instances corresponding to
the given key (optional operation).
Method clears oldest 15% of objects in pool.
Does nothing this base implementation.
Close this pool, and free any resources associated with it.
Close this pool, and free any resources associated with it.
Close this pool, and free any resources associated with it.
A simple "struct" encapsulating the
configuration information for a
GenericObjectPool
.
The default cap on the total number of active instances from the pool
(per key).
The default cap on the total number of active instances from the pool.
The default cap on the number of idle instances in the pool
(per key).
The default cap on the number of "sleeping" instances in the pool.
The default cap on the the maximum number of objects that can exists at one time.
The default minimum level of idle objects in the pool.
The default minimum number of "sleeping" instances in the pool
before before the evictor thread (if active) spawns new objects.
The default number of objects to examine per run in the
idle object evictor.
The default number of objects to examine per run in the
idle object evictor.
The default "test on borrow" value.
The default "test on borrow" value.
The default "test on return" value.
The default "test on return" value.
The default "test while idle" value.
The default "test while idle" value.
The default "time between eviction runs" value.
The default "time between eviction runs" value.
The default "when exhausted action" for the pool.
The default "when exhausted action" for the pool.
Destroys an instance no longer needed by the pool.
Destroy an instance no longer needed by the pool.
Create a new GenericKeyedObjectPool..
Create a new GenericKeyedObjectPool using the specified values.
Create a new GenericKeyedObjectPool using the specified values.
Create a new GenericKeyedObjectPool using the specified values.
Create a new GenericKeyedObjectPool using the specified values.
Create a new GenericKeyedObjectPool using the specified values.
Create a new GenericKeyedObjectPool using the specified values.
GenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory,int,byte,long,int,boolean,boolean,long,int,long,boolean) - constructor for class org.apache.commons.pool.impl.
GenericKeyedObjectPool Create a new GenericKeyedObjectPool using the specified values.
GenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory,int,byte,long,int,int,boolean,boolean,long,int,long,boolean) - constructor for class org.apache.commons.pool.impl.
GenericKeyedObjectPool Create a new GenericKeyedObjectPool using the specified values.
GenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory,int,byte,long,int,int,int,boolean,boolean,long,int,long,boolean) - constructor for class org.apache.commons.pool.impl.
GenericKeyedObjectPool Create a new GenericKeyedObjectPool using the specified values.
Create a new GenericKeyedObjectPool using the specified values.
GenericKeyedObjectPoolFactory(org.apache.commons.pool.KeyedPoolableObjectFactory,int,byte,long,int,boolean,boolean,long,int,long,boolean) - constructor for class org.apache.commons.pool.impl.
GenericKeyedObjectPoolFactory GenericKeyedObjectPoolFactory(org.apache.commons.pool.KeyedPoolableObjectFactory,int,byte,long,int,int,boolean,boolean,long,int,long,boolean) - constructor for class org.apache.commons.pool.impl.
GenericKeyedObjectPoolFactory GenericKeyedObjectPoolFactory(org.apache.commons.pool.KeyedPoolableObjectFactory,int,byte,long,int,int,int,boolean,boolean,long,int,long,boolean) - constructor for class org.apache.commons.pool.impl.
GenericKeyedObjectPoolFactory Create a new GenericObjectPool.
Create a new GenericObjectPool using the specified values.
Create a new GenericObjectPool using the specified values.
Create a new GenericObjectPool using the specified values.
Create a new GenericObjectPool using the specified values.
Create a new GenericObjectPool using the specified values.
Create a new GenericObjectPool using the specified values.
GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory,int,byte,long,int,boolean,boolean,long,int,long,boolean) - constructor for class org.apache.commons.pool.impl.
GenericObjectPool Create a new GenericObjectPool using the specified values.
GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory,int,byte,long,int,int,boolean,boolean,long,int,long,boolean) - constructor for class org.apache.commons.pool.impl.
GenericObjectPool Create a new GenericObjectPool using the specified values.
GenericObjectPool(org.apache.commons.pool.PoolableObjectFactory,int,byte,long,int,int,boolean,boolean,long,int,long,boolean,long) - constructor for class org.apache.commons.pool.impl.
GenericObjectPool Create a new GenericObjectPool using the specified values.
Create a new GenericObjectPool using the specified values.
GenericObjectPoolFactory(org.apache.commons.pool.PoolableObjectFactory,int,byte,long,int,boolean,boolean,long,int,long,boolean) - constructor for class org.apache.commons.pool.impl.
GenericObjectPoolFactory GenericObjectPoolFactory(org.apache.commons.pool.PoolableObjectFactory,int,byte,long,int,int,boolean,boolean,long,int,long,boolean) - constructor for class org.apache.commons.pool.impl.
GenericObjectPoolFactory GenericObjectPoolFactory(org.apache.commons.pool.PoolableObjectFactory,int,byte,long,int,int,boolean,boolean,long,int,long,boolean,long) - constructor for class org.apache.commons.pool.impl.
GenericObjectPoolFactory Returns the cap on the number of active instances from my pool (per key).
Returns the cap on the total number of active instances from my pool.
Returns the cap on the number of "idle" instances in the pool.
Returns the cap on the number of "idle" instances in the pool.
Returns the cap on the total number of instances from my pool if non-positive.
Returns the minimum amount of time an object may sit idle in the pool
before it is eligable for eviction by the idle object evictor
(if any).
Returns the minimum amount of time an object may sit idle in the pool
before it is eligable for eviction by the idle object evictor
(if any).
Returns the minimum number of idle objects in pool to maintain (per key)
Returns the minimum number of objects allowed in the pool
before the evictor thread (if active) spawns new objects.
Not supported in this base implementation.
Not supported in this base implementation.
Returns the total number of instances
current borrowed from my pool but not
yet returned (optional operation).
Return the number of instances
currently borrowed from my pool
(optional operation).
Not supported in this base implementation.
Returns the number of instances
currently borrowed from but not yet returned
to my pool corresponding to the
given key (optional operation).
Not supported in this base implementation.
Not supported in this base implementation.
Returns the total number of instances
currently idle in my pool (optional operation).
Return the number of instances
currently idle in my pool (optional operation).
Returns an approximation not less than the of the number of idle instances in the pool.
Not supported in this base implementation.
Returns the number of instances
corresponding to the given key
currently idle in my pool (optional operation).
Returns the number of objects to examine during each run of the
idle object evictor thread (if any).
Returns the max number of objects to examine during each run of the
idle object evictor thread (if any).
Returns the minimum amount of time an object may sit idle in the pool
before it is eligable for eviction by the idle object evictor
(if any), with the extra condition that at least
"minIdle" amount of object remain in the pool.
When
true, objects will be
validated
by the idle object evictor (if any).
When
true, objects will be
validated
by the idle object evictor (if any).
Returns the number of milliseconds to sleep between runs of the
idle object evictor thread.
Returns the number of milliseconds to sleep between runs of the
idle object evictor thread.
Returns the action to take when the
borrowObject(Object)
method
is invoked when the pool is exhausted (the maximum number
of "active" objects has been reached).
Returns the action to take when the
borrowObject()
method
is invoked when the pool is exhausted (the maximum number
of "active" objects has been reached).
Uninitialize an instance to be returned to the pool.
Uninitialize an instance to be returned to the pool.
An interface defining life-cycle methods for
instances to be used in an
ObjectPool
.
This class consists exclusively of static methods that operate on or return keyedPool related interfaces.
PoolUtils instances should NOT be constructed in standard programming.
Call addObject(Object)
on keyedPool
with each key in keys
for
count
number of times.
Call addObject(Object)
on keyedPool
with key
count
number of times.
Call addObject()
on keyedPool
count
number of times.
Registers a key for pool control.
Not supported in this base implementation.
Sets the
factory
I use
to create new instances (optional operation).
Not supported in this base implementation.
Sets the
factory
I use
to create new instances (optional operation).
Sets the cap on the number of active instances from my pool (per key).
Sets the cap on the total number of active instances from my pool.
Sets the cap on the number of "idle" instances in the pool.
Sets the cap on the number of "idle" instances in the pool.
Sets the cap on the total number of instances from my pool if non-positive.
Sets the minimum amount of time an object may sit idle in the pool
before it is eligable for eviction by the idle object evictor
(if any).
Sets the minimum amount of time an object may sit idle in the pool
before it is eligable for eviction by the idle object evictor
(if any).
Sets the minimum number of idle objects in pool to maintain (per key)
Sets the minimum number of objects allowed in the pool
before the evictor thread (if active) spawns new objects.
Sets the number of objects to examine during each run of the
idle object evictor thread (if any).
Sets the max number of objects to examine during each run of the
idle object evictor thread (if any).
Sets the minimum amount of time an object may sit idle in the pool
before it is eligable for eviction by the idle object evictor
(if any), with the extra condition that at least
"minIdle" amount of object remain in the pool.
When
true, objects will be
validated
by the idle object evictor (if any).
When
true, objects will be
validated
by the idle object evictor (if any).
Sets the number of milliseconds to sleep between runs of the
idle object evictor thread.
Sets the number of milliseconds to sleep between runs of the
idle object evictor thread.
Sets the action to take when the
borrowObject(Object)
method
is invoked when the pool is exhausted (the maximum number
of "active" objects has been reached).
Sets the action to take when the
borrowObject()
method
is invoked when the pool is exhausted (the maximum number
of "active" objects has been reached).
Create a new pool using
no factory.
Create a new pool using
no factory.
Create a new pool using
no factory.
Create a new SimpleKeyedObjectPool using
the specified factory to create new instances.
Create a new SimpleKeyedObjectPool using
the specified factory to create new instances.
Create a new SimpleKeyedObjectPool using
the specified factory to create new instances.
Create a new pool using
no factory.
Create a new pool using
no factory.
Create a new pool using
no factory.
Create a new StackObjectPool using
the specified factory to create new instances.
Create a new SimpleObjectPool using
the specified factory to create new instances,
capping the number of "sleeping" instances to max.
Create a new SimpleObjectPool using
the specified factory to create new instances,
capping the number of "sleeping" instances to max,
and initially allocating a container capable of containing
at least init instances.
Returns a synchronized (thread-safe) KeyedObjectPool backed by the specified KeyedObjectPool.
Returns a synchronized (thread-safe) ObjectPool backed by the specified ObjectPool.
Returns a synchronized (thread-safe) KeyedPoolableObjectFactory backed by the specified KeyedPoolableObjectFactory.
Returns a synchronized (thread-safe) PoolableObjectFactory backed by the specified PoolableObjectFactory.