| Constructor: |
public StackKeyedObjectPoolFactory() {
this((KeyedPoolableObjectFactory)null,StackKeyedObjectPool.DEFAULT_MAX_SLEEPING,StackKeyedObjectPool.DEFAULT_INIT_SLEEPING_CAPACITY);
}
Create a new StackKeyedObjectPoolFactory. Also see:
- StackKeyedObjectPool#StackKeyedObjectPool()
|
public StackKeyedObjectPoolFactory(int max) {
this((KeyedPoolableObjectFactory)null,max,StackKeyedObjectPool.DEFAULT_INIT_SLEEPING_CAPACITY);
}
Create a new StackKeyedObjectPoolFactory. Parameters:
max - cap on the number of "sleeping" instances in the pool.
Also see:
- StackKeyedObjectPool#StackKeyedObjectPool(int)
|
public StackKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory) {
this(factory,StackKeyedObjectPool.DEFAULT_MAX_SLEEPING,StackKeyedObjectPool.DEFAULT_INIT_SLEEPING_CAPACITY);
}
Create a new StackKeyedObjectPoolFactory. Parameters:
factory - the KeyedPoolableObjectFactory used by created pools.
Also see:
- StackKeyedObjectPool#StackKeyedObjectPool(KeyedPoolableObjectFactory)
|
public StackKeyedObjectPoolFactory(int max,
int init) {
this((KeyedPoolableObjectFactory)null,max,init);
}
Create a new StackKeyedObjectPoolFactory. Parameters:
max - cap on the number of "sleeping" instances in the pool.
init - initial size of the pool (this specifies the size of the container, it does not cause the pool to be pre-populated.)
Also see:
- StackKeyedObjectPool#StackKeyedObjectPool(int, int)
|
public StackKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory,
int max) {
this(factory,max,StackKeyedObjectPool.DEFAULT_INIT_SLEEPING_CAPACITY);
}
Create a new StackKeyedObjectPoolFactory. Parameters:
factory - the KeyedPoolableObjectFactory used by created pools.
max - cap on the number of "sleeping" instances in the pool.
Also see:
- StackKeyedObjectPool#StackKeyedObjectPool(KeyedPoolableObjectFactory, int)
|
public StackKeyedObjectPoolFactory(KeyedPoolableObjectFactory factory,
int max,
int init) {
_factory = factory;
_maxSleeping = max;
_initCapacity = init;
}
Create a new StackKeyedObjectPoolFactory. Parameters:
factory - the KeyedPoolableObjectFactory used by created pools.
max - cap on the number of "sleeping" instances in the pool.
init - initial size of the pool (this specifies the size of the container, it does not cause the pool to be pre-populated.)
Also see:
- StackKeyedObjectPool#StackKeyedObjectPool(KeyedPoolableObjectFactory, int, int)
|