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

All Implemented Interfaces:
    KeyedObjectPoolFactory

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