程序包 | 说明 |
---|---|
com.sh.pool | |
com.sh.pool.impl | |
com.sh.pool.object.ddc |
限定符和类型 | 类和说明 |
---|---|
class |
BaseObjectPool<T>
Description: BaseObjectPool
Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
|
限定符和类型 | 方法和说明 |
---|---|
static <V> ObjectPool<V> |
PoolUtils.adapt(KeyedObjectPool<java.lang.Object,V> keyedPool)
Adapt a
KeyedObjectPool instance to work where an ObjectPool is needed. |
static <V> ObjectPool<V> |
PoolUtils.adapt(KeyedObjectPool<java.lang.Object,V> keyedPool,
java.lang.Object key)
Adapt a
KeyedObjectPool instance to work where an ObjectPool is needed using the
specified key when delegating. |
static <T> ObjectPool<T> |
PoolUtils.checkedPool(ObjectPool<T> pool,
java.lang.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 <T> ObjectPool<T> |
PoolUtils.erodingPool(ObjectPool<T> pool)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static <T> ObjectPool<T> |
PoolUtils.erodingPool(ObjectPool<T> pool,
float factor)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static <T> ObjectPool<T> |
PoolUtils.synchronizedPool(ObjectPool<T> pool)
Returns a synchronized (thread-safe) ObjectPool backed by the specified ObjectPool.
|
限定符和类型 | 方法和说明 |
---|---|
static <K,V> KeyedObjectPool<K,V> |
PoolUtils.adapt(ObjectPool<V> pool)
Adapt an
ObjectPool to work where an KeyedObjectPool is needed. |
static <T> ObjectPool<T> |
PoolUtils.checkedPool(ObjectPool<T> pool,
java.lang.Class<T> type)
Wraps an
ObjectPool and dynamically checks the type of objects borrowed and returned to the pool. |
static <T> java.util.TimerTask |
PoolUtils.checkMinIdle(ObjectPool<T> pool,
int minIdle,
long period)
Periodically check the idle object count for the pool.
|
static <T> ObjectPool<T> |
PoolUtils.erodingPool(ObjectPool<T> pool)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static <T> ObjectPool<T> |
PoolUtils.erodingPool(ObjectPool<T> pool,
float factor)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static <T> void |
PoolUtils.prefill(ObjectPool<T> pool,
int count)
Call
addObject() on pool count number of times. |
static <T> ObjectPool<T> |
PoolUtils.synchronizedPool(ObjectPool<T> pool)
Returns a synchronized (thread-safe) ObjectPool backed by the specified ObjectPool.
|
限定符和类型 | 类和说明 |
---|---|
class |
GenericObjectPool<T>
Description: GenericObjectPool
Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
|
class |
SoftReferenceObjectPool<T>
Description: SoftReferenceObjectPool
Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
|
class |
StackObjectPool<T>
Description: StackObjectPool
Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
|
限定符和类型 | 方法和说明 |
---|---|
ObjectPool<T> |
StackObjectPoolFactory.createPool()
Create a StackObjectPool.
|
ObjectPool<T> |
GenericObjectPoolFactory.createPool()
Create and return a new
ObjectPool . |
限定符和类型 | 方法和说明 |
---|---|
static ObjectPool |
DDCPool.getPool() |