|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.pool.impl.StackObjectPoolFactory<T>
T
- the type of objects held in this poolpublic class StackObjectPoolFactory<T>
A factory for creating StackObjectPool
instances.
StackObjectPool
,
StackKeyedObjectPoolFactory
Constructor Summary | |
---|---|
StackObjectPoolFactory(PoolableObjectFactory<T> factory)
Create a new StackObjectPoolFactory. |
|
StackObjectPoolFactory(PoolableObjectFactory<T> factory,
int maxIdle)
Create a new StackObjectPoolFactory. |
|
StackObjectPoolFactory(PoolableObjectFactory<T> factory,
int maxIdle,
int initIdleCapacity)
Create a new StackObjectPoolFactory. |
Method Summary | |
---|---|
ObjectPool<T> |
createPool()
Create a StackObjectPool. |
PoolableObjectFactory<T> |
getFactory()
Returns the factory used by created pools. |
int |
getInitCapacity()
Returns the initial capacity of created pools. |
int |
getMaxSleeping()
Returns the maxIdle setting for created pools. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StackObjectPoolFactory(PoolableObjectFactory<T> factory)
factory
- the PoolableObjectFactory used by created pools.StackObjectPool.StackObjectPool(PoolableObjectFactory)
public StackObjectPoolFactory(PoolableObjectFactory<T> factory, int maxIdle)
factory
- the PoolableObjectFactory used by created pools.maxIdle
- cap on the number of "sleeping" instances in the pool.public StackObjectPoolFactory(PoolableObjectFactory<T> factory, int maxIdle, int initIdleCapacity)
factory
- the PoolableObjectFactory used by created pools.maxIdle
- cap on the number of "sleeping" instances in the pool.initIdleCapacity
- - initial size of the pool (this specifies the size of the container,
it does not cause the pool to be pre-populated.)Method Detail |
---|
public ObjectPool<T> createPool()
createPool
in interface ObjectPoolFactory<T>
public PoolableObjectFactory<T> getFactory()
public int getInitCapacity()
public int getMaxSleeping()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |