public class StackObjectPoolFactory extends java.lang.Object implements ObjectPoolFactory
StackObjectPool
instances.StackObjectPool
,
StackKeyedObjectPoolFactory
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
ObjectPool |
createPool()
Create and return a new
ObjectPool . |
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.)public ObjectPool createPool()
ObjectPoolFactory
ObjectPool
.createPool
in interface ObjectPoolFactory
ObjectPool
Copyright © 2001-2003 Apache Software Foundation. Documenation generated October 17 2018.