org.apache.avalon.excalibur.pool
Class SoftResourceLimitingPool
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.excalibur.pool.AbstractPool
org.apache.avalon.excalibur.pool.DefaultPool
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool
- All Implemented Interfaces:
- Pool, Resizable, Disposable, LogEnabled, ThreadSafe
- Direct Known Subclasses:
- HardResourceLimitingPool
public class SoftResourceLimitingPool
- extends DefaultPool
- implements Resizable
This is an Pool
that caches Poolable objects for reuse.
- Since:
- 4.0
- Version:
- CVS $Revision: 1.5 $ $Date: 2004/03/29 16:50:37 $
- Author:
- Avalon Development Team
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SoftResourceLimitingPool
public SoftResourceLimitingPool(ObjectFactory factory)
throws Exception
- Create an SoftResourceLimitingPool. The pool requires a factory.
- Throws:
Exception
SoftResourceLimitingPool
public SoftResourceLimitingPool(ObjectFactory factory,
int min)
throws Exception
- Create an SoftResourceLimitingPool. The pool requires a factory,
and can optionally have a controller.
- Throws:
Exception
SoftResourceLimitingPool
public SoftResourceLimitingPool(ObjectFactory factory,
int min,
int max)
throws Exception
- Create an SoftResourceLimitingPool. The pool requires a factory,
and can optionally have a controller.
- Throws:
Exception
SoftResourceLimitingPool
public SoftResourceLimitingPool(ObjectFactory factory,
PoolController controller,
int min,
int max)
throws Exception
- Create an SoftResourceLimitingPool. The pool requires a factory,
and can optionally have a controller.
- Throws:
Exception
SoftResourceLimitingPool
public SoftResourceLimitingPool(Class clazz,
int initial,
int maximum)
throws NoSuchMethodException,
Exception
- Throws:
NoSuchMethodException
Exception
SoftResourceLimitingPool
public SoftResourceLimitingPool(Class clazz,
int initial)
throws NoSuchMethodException,
Exception
- Throws:
NoSuchMethodException
Exception
initialize
public void initialize()
throws Exception
- Overrides:
initialize
in class AbstractPool
- Throws:
Exception
grow
public void grow(int amount)
- Specified by:
grow
in interface Resizable
shrink
public void shrink(int amount)
- Specified by:
shrink
in interface Resizable
Copyright © 1997-2012 Apache Software Foundation. All Rights Reserved.