程序包 | 说明 |
---|---|
org.apache.commons.pool2 | |
org.apache.commons.pool2.impl |
Object pooling API implementations.
|
限定符和类型 | 类和说明 |
---|---|
class |
BaseKeyedPooledObjectFactory<K,V>
A base implementation of
KeyedPooledObjectFactory . |
限定符和类型 | 方法和说明 |
---|---|
static <K,V> KeyedPooledObjectFactory<K,V> |
PoolUtils.synchronizedKeyedPooledFactory(KeyedPooledObjectFactory<K,V> keyedFactory)
Returns a synchronized (thread-safe) KeyedPooledObjectFactory backed by
the specified KeyedPoolableObjectFactory.
|
限定符和类型 | 方法和说明 |
---|---|
static <K,V> KeyedPooledObjectFactory<K,V> |
PoolUtils.synchronizedKeyedPooledFactory(KeyedPooledObjectFactory<K,V> keyedFactory)
Returns a synchronized (thread-safe) KeyedPooledObjectFactory backed by
the specified KeyedPoolableObjectFactory.
|
限定符和类型 | 方法和说明 |
---|---|
KeyedPooledObjectFactory<K,T> |
GenericKeyedObjectPool.getFactory()
Obtain a reference to the factory used to create, destroy and validate
the objects used by this pool.
|
构造器和说明 |
---|
GenericKeyedObjectPool(KeyedPooledObjectFactory<K,T> factory)
Create a new
GenericKeyedObjectPool using defaults from
GenericKeyedObjectPoolConfig . |
GenericKeyedObjectPool(KeyedPooledObjectFactory<K,T> factory,
GenericKeyedObjectPoolConfig<T> config)
Create a new
GenericKeyedObjectPool using a specific
configuration. |
GenericKeyedObjectPool(KeyedPooledObjectFactory<K,T> factory,
GenericKeyedObjectPoolConfig<T> config,
AbandonedConfig abandonedConfig)
Creates a new
GenericKeyedObjectPool that tracks and destroys
objects that are checked out, but never returned to the pool. |