|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.pool.impl.StackObjectPoolFactory
public class StackObjectPoolFactory
A factory for creating StackObjectPool instances.
StackObjectPool,
StackKeyedObjectPoolFactory| Field Summary | |
|---|---|
protected PoolableObjectFactory |
_factory
|
protected int |
_initCapacity
|
protected int |
_maxSleeping
|
| Constructor Summary | |
|---|---|
StackObjectPoolFactory()
Create a new StackObjectPoolFactory. |
|
StackObjectPoolFactory(int maxIdle)
Create a new StackObjectPoolFactory. |
|
StackObjectPoolFactory(int maxIdle,
int initIdleCapacity)
Create a new StackObjectPoolFactory. |
|
StackObjectPoolFactory(PoolableObjectFactory factory)
Create a new StackObjectPoolFactory. |
|
StackObjectPoolFactory(PoolableObjectFactory factory,
int maxIdle)
Create a new StackObjectPoolFactory. |
|
StackObjectPoolFactory(PoolableObjectFactory factory,
int maxIdle,
int initIdleCapacity)
Create a new StackObjectPoolFactory. |
|
| Method Summary | |
|---|---|
ObjectPool |
createPool()
Create and return a new ObjectPool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PoolableObjectFactory _factory
protected int _maxSleeping
protected int _initCapacity
| Constructor Detail |
|---|
public StackObjectPoolFactory()
StackObjectPool.StackObjectPool()public StackObjectPoolFactory(int maxIdle)
maxIdle - cap on the number of "sleeping" instances in the pool.StackObjectPool.StackObjectPool(int)
public StackObjectPoolFactory(int maxIdle,
int initIdleCapacity)
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.)StackObjectPool.StackObjectPool(int, int)public StackObjectPoolFactory(PoolableObjectFactory factory)
factory - the PoolableObjectFactory used by created pools.StackObjectPool.StackObjectPool(PoolableObjectFactory)
public StackObjectPoolFactory(PoolableObjectFactory factory,
int maxIdle)
factory - the PoolableObjectFactory used by created pools.maxIdle - cap on the number of "sleeping" instances in the pool.
public StackObjectPoolFactory(PoolableObjectFactory 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 createPool()
ObjectPoolFactoryObjectPool.
createPool in interface ObjectPoolFactoryObjectPool
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||