Package | Description |
---|---|
org.apache.commons.pool |
Object pooling API.
|
org.apache.commons.pool.impl |
Object pooling API implementations.
|
Modifier and Type | Class and Description |
---|---|
class |
BaseKeyedPoolableObjectFactory<K,V>
A base implementation of
KeyedPoolableObjectFactory . |
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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<Object,V> keyedFactory)
Adapt a
KeyedPoolableObjectFactory instance to work where a PoolableObjectFactory is
needed. |
void |
KeyedObjectPool.setFactory(KeyedPoolableObjectFactory<K,V> factory)
Deprecated.
to be removed in pool 2.0
|
void |
BaseKeyedObjectPool.setFactory(KeyedPoolableObjectFactory<K,V> factory)
Deprecated.
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.
|
Modifier and Type | Field and Description |
---|---|
protected KeyedPoolableObjectFactory<K,V> |
StackKeyedObjectPoolFactory._factory
Deprecated.
to be removed in pool 2.0
|
protected KeyedPoolableObjectFactory<K,V> |
StackKeyedObjectPool._factory
Deprecated.
to be removed in pool 2.0. Use
StackKeyedObjectPool.getFactory() |
protected KeyedPoolableObjectFactory<K,V> |
GenericKeyedObjectPoolFactory._factory
Deprecated.
to be removed in pool 2.0. Use
GenericKeyedObjectPoolFactory.getFactory() . |
Modifier and Type | Method and Description |
---|---|
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() |
Modifier and Type | Method and Description |
---|---|
void |
GenericKeyedObjectPool.setFactory(KeyedPoolableObjectFactory<K,V> factory)
Deprecated.
to be removed in version 2.0
|
void |
StackKeyedObjectPool.setFactory(KeyedPoolableObjectFactory<K,V> factory)
Deprecated.
to be removed in pool 2.0
|
Constructor and Description |
---|
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.
|
Copyright © 2001-2015 The Apache Software Foundation. All Rights Reserved.