程序包 | 说明 |
---|---|
com.sh.pool | |
com.sh.pool.impl |
限定符和类型 | 类和说明 |
---|---|
class |
BaseKeyedObjectPool<K,V>
Description: BaseKeyedObjectPool
Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
|
限定符和类型 | 方法和说明 |
---|---|
static <K,V> KeyedObjectPool<K,V> |
PoolUtils.adapt(ObjectPool<V> pool)
Adapt an
ObjectPool to work where an KeyedObjectPool is needed. |
static <K,V> KeyedObjectPool<K,V> |
PoolUtils.checkedPool(KeyedObjectPool<K,V> keyedPool,
java.lang.Class<V> type)
Wraps a
KeyedObjectPool and dynamically checks the type of objects borrowed and returned to the keyedPool. |
KeyedObjectPool<K,V> |
KeyedObjectPoolFactory.createPool()
Create a new
KeyedObjectPool . |
static <K,V> KeyedObjectPool<K,V> |
PoolUtils.erodingPool(KeyedObjectPool<K,V> keyedPool)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static <K,V> KeyedObjectPool<K,V> |
PoolUtils.erodingPool(KeyedObjectPool<K,V> keyedPool,
float factor)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static <K,V> KeyedObjectPool<K,V> |
PoolUtils.erodingPool(KeyedObjectPool<K,V> keyedPool,
float factor,
boolean perKey)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static <K,V> KeyedObjectPool<K,V> |
PoolUtils.synchronizedPool(KeyedObjectPool<K,V> keyedPool)
Returns a synchronized (thread-safe) KeyedObjectPool backed by the specified KeyedObjectPool.
|
限定符和类型 | 方法和说明 |
---|---|
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 <K,V> KeyedObjectPool<K,V> |
PoolUtils.checkedPool(KeyedObjectPool<K,V> keyedPool,
java.lang.Class<V> type)
Wraps a
KeyedObjectPool and dynamically checks the type of objects borrowed and returned to the keyedPool. |
static <K,V> java.util.Map<K,java.util.TimerTask> |
PoolUtils.checkMinIdle(KeyedObjectPool<K,V> keyedPool,
java.util.Collection<? extends K> keys,
int minIdle,
long period)
Periodically check the idle object count for each key in the
Collection keys in the keyedPool. |
static <K,V> java.util.TimerTask |
PoolUtils.checkMinIdle(KeyedObjectPool<K,V> keyedPool,
K key,
int minIdle,
long period)
Periodically check the idle object count for the key in the keyedPool.
|
static <K,V> KeyedObjectPool<K,V> |
PoolUtils.erodingPool(KeyedObjectPool<K,V> keyedPool)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static <K,V> KeyedObjectPool<K,V> |
PoolUtils.erodingPool(KeyedObjectPool<K,V> keyedPool,
float factor)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static <K,V> KeyedObjectPool<K,V> |
PoolUtils.erodingPool(KeyedObjectPool<K,V> keyedPool,
float factor,
boolean perKey)
Returns a pool that adaptively decreases it's size when idle objects are no longer needed.
|
static <K,V> void |
PoolUtils.prefill(KeyedObjectPool<K,V> keyedPool,
java.util.Collection<? extends K> keys,
int count)
Call
addObject(Object) on keyedPool with each key in keys for
count number of times. |
static <K,V> void |
PoolUtils.prefill(KeyedObjectPool<K,V> keyedPool,
K key,
int count)
Call
addObject(Object) on keyedPool with key count
number of times. |
static <K,V> KeyedObjectPool<K,V> |
PoolUtils.synchronizedPool(KeyedObjectPool<K,V> keyedPool)
Returns a synchronized (thread-safe) KeyedObjectPool backed by the specified KeyedObjectPool.
|
限定符和类型 | 类和说明 |
---|---|
class |
GenericKeyedObjectPool<K,V>
Description: GenericKeyedObjectPool
Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
|
class |
StackKeyedObjectPool<K,V>
Description: StackKeyedObjectPool
Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
|
限定符和类型 | 方法和说明 |
---|---|
KeyedObjectPool<K,V> |
StackKeyedObjectPoolFactory.createPool()
Create a StackKeyedObjectPool with current property settings.
|
KeyedObjectPool<K,V> |
GenericKeyedObjectPoolFactory.createPool()
Create a new GenericKeyedObjectPool with the currently configured properties.
|