|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ObjectPool | |
---|---|
org.apache.commons.pool | Object pooling API. |
org.apache.commons.pool.impl | Object pooling API implementations. |
Uses of ObjectPool in org.apache.commons.pool |
---|
Classes in org.apache.commons.pool that implement ObjectPool | |
---|---|
class |
BaseObjectPool<T>
A simple base implementation of ObjectPool . |
Methods in org.apache.commons.pool that return ObjectPool | ||
---|---|---|
static
|
PoolUtils.adapt(KeyedObjectPool<Object,V> keyedPool)
Adapt a KeyedObjectPool instance to work where an ObjectPool is needed. |
|
static
|
PoolUtils.adapt(KeyedObjectPool<Object,V> keyedPool,
Object key)
Adapt a KeyedObjectPool instance to work where an ObjectPool is needed using the
specified key when delegating. |
|
static
|
PoolUtils.checkedPool(ObjectPool<T> pool,
Class<T> type)
Wraps an ObjectPool and dynamically checks the type of objects borrowed and returned to the pool. |
|
ObjectPool<T> |
ObjectPoolFactory.createPool()
Create and return a new ObjectPool . |
|
static
|
PoolUtils.erodingPool(ObjectPool<T> pool)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed. |
|
static
|
PoolUtils.erodingPool(ObjectPool<T> pool,
float factor)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed. |
|
static
|
PoolUtils.synchronizedPool(ObjectPool<T> pool)
Returns a synchronized (thread-safe) ObjectPool backed by the specified ObjectPool. |
Methods in org.apache.commons.pool with parameters of type ObjectPool | ||
---|---|---|
static
|
PoolUtils.adapt(ObjectPool<V> pool)
Adapt an ObjectPool to work where an KeyedObjectPool is needed. |
|
static
|
PoolUtils.checkedPool(ObjectPool<T> pool,
Class<T> type)
Wraps an ObjectPool and dynamically checks the type of objects borrowed and returned to the pool. |
|
static
|
PoolUtils.checkMinIdle(ObjectPool<T> pool,
int minIdle,
long period)
Periodically check the idle object count for the pool. |
|
static
|
PoolUtils.erodingPool(ObjectPool<T> pool)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed. |
|
static
|
PoolUtils.erodingPool(ObjectPool<T> pool,
float factor)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed. |
|
static
|
PoolUtils.prefill(ObjectPool<T> pool,
int count)
Call addObject() on pool count number of times. |
|
static
|
PoolUtils.synchronizedPool(ObjectPool<T> pool)
Returns a synchronized (thread-safe) ObjectPool backed by the specified ObjectPool. |
Uses of ObjectPool in org.apache.commons.pool.impl |
---|
Classes in org.apache.commons.pool.impl that implement ObjectPool | |
---|---|
class |
GenericObjectPool<T>
A configurable ObjectPool implementation. |
class |
SoftReferenceObjectPool<T>
A SoftReference based
ObjectPool . |
class |
StackObjectPool<T>
A simple, Stack -based ObjectPool implementation. |
Methods in org.apache.commons.pool.impl that return ObjectPool | |
---|---|
ObjectPool<T> |
StackObjectPoolFactory.createPool()
Create a StackObjectPool. |
ObjectPool<T> |
GenericObjectPoolFactory.createPool()
Create and return a new ObjectPool . |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |