T - the type of objects held in this poolObjectPoolFactory<T>public class StackObjectPoolFactory<T> extends java.lang.Object implements ObjectPoolFactory<T>
StackObjectPool instances.StackObjectPool,
StackKeyedObjectPoolFactory| Constructor | Description |
|---|---|
StackObjectPoolFactory(PoolableObjectFactory<T> factory) |
Create a new StackObjectPoolFactory.
|
StackObjectPoolFactory(PoolableObjectFactory<T> factory,
int maxIdle) |
Create a new StackObjectPoolFactory.
|
StackObjectPoolFactory(PoolableObjectFactory<T> factory,
int maxIdle,
int initIdleCapacity) |
Create a new StackObjectPoolFactory.
|
| Modifier and Type | Method | Description |
|---|---|---|
ObjectPool<T> |
createPool() |
Create a StackObjectPool.
|
PoolableObjectFactory<T> |
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<T> factory)
factory - the PoolableObjectFactory used by created pools.StackObjectPool(PoolableObjectFactory)public StackObjectPoolFactory(PoolableObjectFactory<T> factory, int maxIdle)
factory - the PoolableObjectFactory used by created pools.maxIdle - cap on the number of "sleeping" instances in the pool.public StackObjectPoolFactory(PoolableObjectFactory<T> 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<T> createPool()
createPool in interface ObjectPoolFactory<T>public PoolableObjectFactory<T> getFactory()
public int getInitCapacity()
public int getMaxSleeping()
Copyright © 2001-2012 Apache Software Foundation. Documenation generated September 14 2017.