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:
- org.apache.avalon.framework.component.Component, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.logger.Loggable, Pool, Resizable, org.apache.avalon.framework.thread.ThreadSafe
- Direct Known Subclasses:
- DefaultComponentPool, 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.8 $ $Date: 2001/12/21 16:58:06 $
- Author:
- Berin Loritsch
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SoftResourceLimitingPool
public SoftResourceLimitingPool(ObjectFactory factory)
throws java.lang.Exception
- Create an SoftResourceLimitingPool. The pool requires a factory.
SoftResourceLimitingPool
public SoftResourceLimitingPool(ObjectFactory factory,
int min)
throws java.lang.Exception
- Create an SoftResourceLimitingPool. The pool requires a factory,
and can optionally have a controller.
SoftResourceLimitingPool
public SoftResourceLimitingPool(ObjectFactory factory,
int min,
int max)
throws java.lang.Exception
- Create an SoftResourceLimitingPool. The pool requires a factory,
and can optionally have a controller.
SoftResourceLimitingPool
public SoftResourceLimitingPool(ObjectFactory factory,
PoolController controller,
int min,
int max)
throws java.lang.Exception
- Create an SoftResourceLimitingPool. The pool requires a factory,
and can optionally have a controller.
SoftResourceLimitingPool
public SoftResourceLimitingPool(java.lang.Class clazz,
int initial,
int maximum)
throws java.lang.NoSuchMethodException,
java.lang.Exception
SoftResourceLimitingPool
public SoftResourceLimitingPool(java.lang.Class clazz,
int initial)
throws java.lang.NoSuchMethodException,
java.lang.Exception
initialize
public void initialize()
throws java.lang.Exception
- Overrides:
initialize
in class AbstractPool
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 © 2001 Apache Jakarta Project. All Rights Reserved.