Save This Page
Home » commons-pool-1.4-src » org.apache.commons » pool » impl » [javadoc | source]
org.apache.commons.pool.impl
public class: StackObjectPoolFactory [javadoc | source]
java.lang.Object
   org.apache.commons.pool.impl.StackObjectPoolFactory

All Implemented Interfaces:
    ObjectPoolFactory

A factory for creating StackObjectPool instances.
Field Summary
protected  PoolableObjectFactory _factory     
protected  int _maxSleeping     
protected  int _initCapacity     
Constructor:
 public StackObjectPoolFactory() 
 public StackObjectPoolFactory(int maxIdle) 
 public StackObjectPoolFactory(PoolableObjectFactory factory) 
    Create a new StackObjectPoolFactory.
    Parameters:
    factory - the PoolableObjectFactory used by created pools.
    Also see:
    StackObjectPool#StackObjectPool(PoolableObjectFactory)
 public StackObjectPoolFactory(int maxIdle,
    int initIdleCapacity) 
 public StackObjectPoolFactory(PoolableObjectFactory factory,
    int maxIdle) 
    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) 
    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.)
Method from org.apache.commons.pool.impl.StackObjectPoolFactory Summary:
createPool
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.pool.impl.StackObjectPoolFactory Detail:
 public ObjectPool createPool()