Package | Description |
---|---|
org.apache.commons.pool |
Object pooling API.
|
org.apache.commons.pool.impl |
Object pooling API implementations.
|
Modifier and Type | Class and Description |
---|---|
class |
BaseKeyedObjectPool
A simple base implementation of
KeyedObjectPool . |
Modifier and Type | Method and Description |
---|---|
static KeyedObjectPool |
PoolUtils.adapt(ObjectPool pool)
Adapt an
ObjectPool to work where an KeyedObjectPool is needed. |
static KeyedObjectPool |
PoolUtils.checkedPool(KeyedObjectPool keyedPool,
Class type)
Wraps a
KeyedObjectPool and dynamically checks the type of objects borrowed and returned to the keyedPool. |
KeyedObjectPool |
KeyedObjectPoolFactory.createPool()
Create a new
KeyedObjectPool . |
static KeyedObjectPool |
PoolUtils.erodingPool(KeyedObjectPool keyedPool)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static KeyedObjectPool |
PoolUtils.erodingPool(KeyedObjectPool keyedPool,
float factor)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static KeyedObjectPool |
PoolUtils.erodingPool(KeyedObjectPool keyedPool,
float factor,
boolean perKey)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static KeyedObjectPool |
PoolUtils.synchronizedPool(KeyedObjectPool keyedPool)
Returns a synchronized (thread-safe) KeyedObjectPool backed by the specified KeyedObjectPool.
|
Modifier and Type | Method and Description |
---|---|
static ObjectPool |
PoolUtils.adapt(KeyedObjectPool keyedPool)
Adapt a
KeyedObjectPool instance to work where an ObjectPool is needed. |
static ObjectPool |
PoolUtils.adapt(KeyedObjectPool keyedPool,
Object key)
Adapt a
KeyedObjectPool instance to work where an ObjectPool is needed using the
specified key when delegating. |
static KeyedObjectPool |
PoolUtils.checkedPool(KeyedObjectPool keyedPool,
Class type)
Wraps a
KeyedObjectPool and dynamically checks the type of objects borrowed and returned to the keyedPool. |
static Map |
PoolUtils.checkMinIdle(KeyedObjectPool keyedPool,
Collection keys,
int minIdle,
long period)
Periodically check the idle object count for each key in the
Collection keys in the keyedPool. |
static TimerTask |
PoolUtils.checkMinIdle(KeyedObjectPool keyedPool,
Object key,
int minIdle,
long period)
Periodically check the idle object count for the key in the keyedPool.
|
static KeyedObjectPool |
PoolUtils.erodingPool(KeyedObjectPool keyedPool)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static KeyedObjectPool |
PoolUtils.erodingPool(KeyedObjectPool keyedPool,
float factor)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static KeyedObjectPool |
PoolUtils.erodingPool(KeyedObjectPool keyedPool,
float factor,
boolean perKey)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static void |
PoolUtils.prefill(KeyedObjectPool keyedPool,
Collection keys,
int count)
Call
addObject(Object) on keyedPool with each key in keys for
count number of times. |
static void |
PoolUtils.prefill(KeyedObjectPool keyedPool,
Object key,
int count)
Call
addObject(Object) on keyedPool with key count
number of times. |
static KeyedObjectPool |
PoolUtils.synchronizedPool(KeyedObjectPool keyedPool)
Returns a synchronized (thread-safe) KeyedObjectPool backed by the specified KeyedObjectPool.
|
Modifier and Type | Class and Description |
---|---|
class |
GenericKeyedObjectPool
A configurable
KeyedObjectPool implementation. |
class |
StackKeyedObjectPool
A simple,
Stack -based KeyedObjectPool implementation. |
Modifier and Type | Method and Description |
---|---|
KeyedObjectPool |
StackKeyedObjectPoolFactory.createPool()
Create a StackKeyedObjectPool with current property settings.
|
KeyedObjectPool |
GenericKeyedObjectPoolFactory.createPool()
Create a new GenericKeyedObjectPool with the currently configured properties.
|
Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.