Package | Description |
---|---|
org.apache.commons.pool2 |
Object pooling API.
|
org.apache.commons.pool2.impl |
Object pooling API implementations.
|
Modifier and Type | Class and Description |
---|---|
class |
BaseKeyedPooledObjectFactory<K,V>
A base implementation of
KeyedPooledObjectFactory . |
Modifier and Type | Method and Description |
---|---|
static <K,V> KeyedPooledObjectFactory<K,V> |
PoolUtils.synchronizedKeyedPooledFactory(KeyedPooledObjectFactory<K,V> keyedFactory)
Returns a synchronized (thread-safe) KeyedPooledObjectFactory backed by
the specified KeyedPoolableObjectFactory.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> KeyedPooledObjectFactory<K,V> |
PoolUtils.synchronizedKeyedPooledFactory(KeyedPooledObjectFactory<K,V> keyedFactory)
Returns a synchronized (thread-safe) KeyedPooledObjectFactory backed by
the specified KeyedPoolableObjectFactory.
|
Modifier and Type | Method and Description |
---|---|
KeyedPooledObjectFactory<K,T> |
GenericKeyedObjectPool.getFactory()
Obtain a reference to the factory used to create, destroy and validate
the objects used by this pool.
|
Constructor and Description |
---|
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. |
Copyright © 2001–2020 The Apache Software Foundation. All rights reserved.