org.apache.commons.pool.impl
Class StackObjectPoolFactory

java.lang.Object
  |
  +--org.apache.commons.pool.impl.StackObjectPoolFactory
All Implemented Interfaces:
ObjectPoolFactory

public class StackObjectPoolFactory
extends Object
implements ObjectPoolFactory

A factory for creating StackObjectPool instances.

Version:
$Revision: 1.7 $ $Date: 2004/02/28 12:16:21 $
See Also:
StackObjectPool, StackKeyedObjectPoolFactory

Field Summary
protected  org.apache.commons.pool.PoolableObjectFactory _factory
           
protected  int _initCapacity
           
protected  int _maxSleeping
           
 
Constructor Summary
StackObjectPoolFactory()
           
StackObjectPoolFactory(int max)
           
StackObjectPoolFactory(int max, int init)
           
StackObjectPoolFactory(org.apache.commons.pool.PoolableObjectFactory factory)
           
StackObjectPoolFactory(org.apache.commons.pool.PoolableObjectFactory factory, int max)
           
StackObjectPoolFactory(org.apache.commons.pool.PoolableObjectFactory factory, int max, int init)
           
 
Method Summary
 org.apache.commons.pool.ObjectPool createPool()
          Create and return a new ObjectPool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_factory

protected org.apache.commons.pool.PoolableObjectFactory _factory

_maxSleeping

protected int _maxSleeping

_initCapacity

protected int _initCapacity
Constructor Detail

StackObjectPoolFactory

public StackObjectPoolFactory()

StackObjectPoolFactory

public StackObjectPoolFactory(int max)

StackObjectPoolFactory

public StackObjectPoolFactory(int max,
                              int init)

StackObjectPoolFactory

public StackObjectPoolFactory(org.apache.commons.pool.PoolableObjectFactory factory)

StackObjectPoolFactory

public StackObjectPoolFactory(org.apache.commons.pool.PoolableObjectFactory factory,
                              int max)

StackObjectPoolFactory

public StackObjectPoolFactory(org.apache.commons.pool.PoolableObjectFactory factory,
                              int max,
                              int init)
Method Detail

createPool

public org.apache.commons.pool.ObjectPool createPool()
Description copied from interface: ObjectPoolFactory
Create and return a new ObjectPool.

Specified by:
createPool in interface ObjectPoolFactory
Returns:
a new ObjectPool


Copyright © 2001-2004 The Apache Software Foundation. All Rights Reserved.