|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.pool.impl.StackKeyedObjectPoolFactory
public class StackKeyedObjectPoolFactory
A factory for creating StackKeyedObjectPool instances.
StackKeyedObjectPool,
KeyedObjectPoolFactory| Field Summary | |
|---|---|
protected KeyedPoolableObjectFactory |
_factory
Deprecated. to be removed in pool 2.0 |
protected int |
_initCapacity
Deprecated. to be removed in pool 2.0 |
protected int |
_maxSleeping
Deprecated. to be removed in pool 2.0 |
| Constructor Summary | |
|---|---|
StackKeyedObjectPoolFactory()
Create a new StackKeyedObjectPoolFactory. |
|
StackKeyedObjectPoolFactory(int maxSleeping)
Create a new StackKeyedObjectPoolFactory. |
|
StackKeyedObjectPoolFactory(int maxSleeping,
int initialCapacity)
Create a new StackKeyedObjectPoolFactory. |
|
StackKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory)
Create a new StackKeyedObjectPoolFactory. |
|
StackKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory,
int maxSleeping)
Create a new StackKeyedObjectPoolFactory. |
|
StackKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory,
int maxSleeping,
int initialCapacity)
Create a new StackKeyedObjectPoolFactory. |
|
| Method Summary | |
|---|---|
KeyedObjectPool |
createPool()
Create a StackKeyedObjectPool with current property settings. |
KeyedPoolableObjectFactory |
getFactory()
Returns the KeyedPoolableObjectFactory used by StackKeyedObjectPools created by this factory |
int |
getInitialCapacity()
Returns the initial capacity of StackKeyedObjectPools created by this factory. |
int |
getMaxSleeping()
Returns the maximum number of idle instances in each keyed pool for StackKeyedObjectPools created by this factory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected KeyedPoolableObjectFactory _factory
protected int _maxSleeping
protected int _initCapacity
| Constructor Detail |
|---|
public StackKeyedObjectPoolFactory()
StackKeyedObjectPool.StackKeyedObjectPool()public StackKeyedObjectPoolFactory(int maxSleeping)
maxSleeping - cap on the number of "sleeping" instances in the pool.StackKeyedObjectPool.StackKeyedObjectPool(int)
public StackKeyedObjectPoolFactory(int maxSleeping,
int initialCapacity)
maxSleeping - cap on the number of "sleeping" instances in the pool.initialCapacity - initial size of the pool (this specifies the size of the container,
it does not cause the pool to be pre-populated.)StackKeyedObjectPool.StackKeyedObjectPool(int, int)public StackKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory)
factory - the KeyedPoolableObjectFactory used by created pools.StackKeyedObjectPool.StackKeyedObjectPool(KeyedPoolableObjectFactory)
public StackKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory,
int maxSleeping)
factory - the KeyedPoolableObjectFactory used by created pools.maxSleeping - cap on the number of "sleeping" instances in the pool.StackKeyedObjectPool.StackKeyedObjectPool(KeyedPoolableObjectFactory, int)
public StackKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory,
int maxSleeping,
int initialCapacity)
factory - the KeyedPoolableObjectFactory used by created pools.maxSleeping - cap on the number of "sleeping" instances in the pool.initialCapacity - initial size of the pool (this specifies the size of the container,
it does not cause the pool to be pre-populated.)StackKeyedObjectPool.StackKeyedObjectPool(KeyedPoolableObjectFactory, int, int)| Method Detail |
|---|
public KeyedObjectPool createPool()
createPool in interface KeyedObjectPoolFactorypublic KeyedPoolableObjectFactory getFactory()
public int getMaxSleeping()
public int getInitialCapacity()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||