| Constructor: |
public StackObjectPoolFactory() {
this((PoolableObjectFactory)null,StackObjectPool.DEFAULT_MAX_SLEEPING,StackObjectPool.DEFAULT_INIT_SLEEPING_CAPACITY);
}
Create a new StackObjectPoolFactory. Also see:
- StackObjectPool#StackObjectPool()
|
public StackObjectPoolFactory(int maxIdle) {
this((PoolableObjectFactory)null,maxIdle,StackObjectPool.DEFAULT_INIT_SLEEPING_CAPACITY);
}
Create a new StackObjectPoolFactory. Parameters:
maxIdle - cap on the number of "sleeping" instances in the pool.
Also see:
- StackObjectPool#StackObjectPool(int)
|
public StackObjectPoolFactory(PoolableObjectFactory factory) {
this(factory,StackObjectPool.DEFAULT_MAX_SLEEPING,StackObjectPool.DEFAULT_INIT_SLEEPING_CAPACITY);
}
Create a new StackObjectPoolFactory. Parameters:
factory - the PoolableObjectFactory used by created pools.
Also see:
- StackObjectPool#StackObjectPool(PoolableObjectFactory)
|
public StackObjectPoolFactory(int maxIdle,
int initIdleCapacity) {
this((PoolableObjectFactory)null,maxIdle,initIdleCapacity);
}
Create a new StackObjectPoolFactory. Parameters:
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.)
Also see:
- StackObjectPool#StackObjectPool(int, int)
|
public StackObjectPoolFactory(PoolableObjectFactory factory,
int maxIdle) {
this(factory,maxIdle,StackObjectPool.DEFAULT_INIT_SLEEPING_CAPACITY);
}
Create a new StackObjectPoolFactory. Parameters:
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 = factory;
_maxSleeping = maxIdle;
_initCapacity = initIdleCapacity;
}
Create a new StackObjectPoolFactory. Parameters:
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.)
|