程序包 | 说明 |
---|---|
com.sh.pool | |
com.sh.pool.impl |
限定符和类型 | 类和说明 |
---|---|
class |
BaseKeyedPoolableObjectFactory<K,V>
Description: BaseKeyedPoolableObjectFactory
Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
|
限定符和类型 | 方法和说明 |
---|---|
static <K,V> KeyedPoolableObjectFactory<K,V> |
PoolUtils.adapt(PoolableObjectFactory<V> factory)
Adapt a
PoolableObjectFactory instance to work where a KeyedPoolableObjectFactory is
needed. |
static <K,V> KeyedPoolableObjectFactory<K,V> |
PoolUtils.synchronizedPoolableFactory(KeyedPoolableObjectFactory<K,V> keyedFactory)
Returns a synchronized (thread-safe) KeyedPoolableObjectFactory backed by the specified KeyedPoolableObjectFactory.
|
限定符和类型 | 方法和说明 |
---|---|
static <K,V> PoolableObjectFactory<V> |
PoolUtils.adapt(KeyedPoolableObjectFactory<K,V> keyedFactory,
K key)
Adapt a
KeyedPoolableObjectFactory instance to work where a PoolableObjectFactory is
needed using the specified key when delegating. |
static <V> PoolableObjectFactory<V> |
PoolUtils.adapt(KeyedPoolableObjectFactory<java.lang.Object,V> keyedFactory)
Adapt a
KeyedPoolableObjectFactory instance to work where a PoolableObjectFactory is
needed. |
void |
KeyedObjectPool.setFactory(KeyedPoolableObjectFactory<K,V> factory)
已过时。
to be removed in pool 2.0
|
void |
BaseKeyedObjectPool.setFactory(KeyedPoolableObjectFactory<K,V> factory)
已过时。
to be removed in pool 2.0
|
static <K,V> KeyedPoolableObjectFactory<K,V> |
PoolUtils.synchronizedPoolableFactory(KeyedPoolableObjectFactory<K,V> keyedFactory)
Returns a synchronized (thread-safe) KeyedPoolableObjectFactory backed by the specified KeyedPoolableObjectFactory.
|
限定符和类型 | 方法和说明 |
---|---|
KeyedPoolableObjectFactory<K,V> |
StackKeyedObjectPoolFactory.getFactory()
Returns the KeyedPoolableObjectFactory used by StackKeyedObjectPools created by this factory
|
KeyedPoolableObjectFactory<K,V> |
StackKeyedObjectPool.getFactory() |
KeyedPoolableObjectFactory<K,V> |
GenericKeyedObjectPoolFactory.getFactory() |
限定符和类型 | 方法和说明 |
---|---|
void |
StackKeyedObjectPool.setFactory(KeyedPoolableObjectFactory<K,V> factory)
已过时。
to be removed in pool 2.0
|
void |
GenericKeyedObjectPool.setFactory(KeyedPoolableObjectFactory<K,V> factory)
已过时。
to be removed in version 2.0
|
构造器和说明 |
---|
GenericKeyedObjectPool(KeyedPoolableObjectFactory<K,V> factory)
Create a new
GenericKeyedObjectPool using the specified values. |
GenericKeyedObjectPool(KeyedPoolableObjectFactory<K,V> factory,
GenericKeyedObjectPool.Config config)
Create a new
GenericKeyedObjectPool using the specified values. |
GenericKeyedObjectPool(KeyedPoolableObjectFactory<K,V> factory,
int maxActive)
Create a new
GenericKeyedObjectPool using the specified values. |
GenericKeyedObjectPool(KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait)
Create a new
GenericKeyedObjectPool using the specified values. |
GenericKeyedObjectPool(KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
boolean testOnBorrow,
boolean testOnReturn)
Create a new
GenericKeyedObjectPool using the specified values. |
GenericKeyedObjectPool(KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle)
Create a new
GenericKeyedObjectPool using the specified values. |
GenericKeyedObjectPool(KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
boolean testOnBorrow,
boolean testOnReturn)
Create a new
GenericKeyedObjectPool using the specified values. |
GenericKeyedObjectPool(KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle)
Create a new
GenericKeyedObjectPool using the specified values. |
GenericKeyedObjectPool(KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
int maxTotal,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle)
Create a new
GenericKeyedObjectPool using the specified values. |
GenericKeyedObjectPool(KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
int maxTotal,
int minIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle)
Create a new
GenericKeyedObjectPool using the specified values. |
GenericKeyedObjectPool(KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
int maxTotal,
int minIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle,
boolean lifo)
Create a new
GenericKeyedObjectPool using the specified values. |
GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory<K,V> factory)
Create a new GenericKeyedObjectPoolFactory.
|
GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory<K,V> factory,
GenericKeyedObjectPool.Config config)
Create a new GenericKeyedObjectPoolFactory.
|
GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory<K,V> factory,
int maxActive)
Create a new GenericKeyedObjectPoolFactory.
|
GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait)
Create a new GenericKeyedObjectPoolFactory.
|
GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
boolean testOnBorrow,
boolean testOnReturn)
Create a new GenericKeyedObjectPoolFactory.
|
GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle)
Create a new GenericKeyedObjectPoolFactory.
|
GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
boolean testOnBorrow,
boolean testOnReturn)
Create a new GenericKeyedObjectPoolFactory.
|
GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle)
Create a new GenericKeyedObjectPoolFactory.
|
GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
int maxTotal)
Create a new GenericKeyedObjectPoolFactory.
|
GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
int maxTotal,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle)
Create a new GenericKeyedObjectPoolFactory.
|
GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
int maxTotal,
int minIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle)
Create a new GenericKeyedObjectPoolFactory.
|
GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
int maxTotal,
int minIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle,
boolean lifo)
Create a new GenericKeyedObjectPoolFactory.
|
StackKeyedObjectPool(KeyedPoolableObjectFactory<K,V> factory)
Create a new
SimpleKeyedObjectPool using
the specified factory to create new instances. |
StackKeyedObjectPool(KeyedPoolableObjectFactory<K,V> factory,
int max)
Create a new
SimpleKeyedObjectPool using
the specified factory to create new instances. |
StackKeyedObjectPool(KeyedPoolableObjectFactory<K,V> factory,
int max,
int init)
Create a new
SimpleKeyedObjectPool using
the specified factory to create new instances. |
StackKeyedObjectPoolFactory(KeyedPoolableObjectFactory<K,V> factory)
Create a new StackKeyedObjectPoolFactory.
|
StackKeyedObjectPoolFactory(KeyedPoolableObjectFactory<K,V> factory,
int maxSleeping)
Create a new StackKeyedObjectPoolFactory.
|
StackKeyedObjectPoolFactory(KeyedPoolableObjectFactory<K,V> factory,
int maxSleeping,
int initialCapacity)
Create a new StackKeyedObjectPoolFactory.
|