public class StackObjectPoolFactory extends Object implements ObjectPoolFactory
StackObjectPool
instances.StackObjectPool
,
StackKeyedObjectPoolFactory
Constructor and Description |
---|
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 a StackObjectPool.
|
PoolableObjectFactory |
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.
|
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()
createPool
in interface ObjectPoolFactory
public PoolableObjectFactory getFactory()
public int getInitCapacity()
public int getMaxSleeping()
Copyright © 2001-2011 Apache Software Foundation. Documenation generated May 18 2012.