org.apache.avalon.excalibur.pool
Class DefaultPool
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.excalibur.pool.AbstractPool
org.apache.avalon.excalibur.pool.DefaultPool
- All Implemented Interfaces:
- Disposable, LogEnabled, Pool, ThreadSafe
- Direct Known Subclasses:
- SoftResourceLimitingPool
- public class DefaultPool
- extends AbstractPool
- implements Disposable
This is an Pool that caches Poolable objects for reuse. Please note that this pool offers no resource limiting whatsoever.
- Since:
- 4.0
- Version:
- CVS $Revision: 1.6 $ $Date: 2004/03/29 16:50:37 $
- Author:
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_min
protected int m_min
-
m_max
protected int m_max
-
m_controller
protected PoolController m_controller
-
m_disposed
protected boolean m_disposed
-
m_quickFail
protected boolean m_quickFail
-
DefaultPool
public DefaultPool(ObjectFactory factory,
PoolController controller)
throws java.lang.Exception
DefaultPool
public DefaultPool(ObjectFactory factory,
PoolController controller,
int initial,
int maximum)
throws java.lang.Exception
DefaultPool
public DefaultPool(ObjectFactory factory)
throws java.lang.Exception
DefaultPool
public DefaultPool(java.lang.Class clazz,
int initial,
int maximum)
throws java.lang.NoSuchMethodException,
java.lang.Exception
DefaultPool
public DefaultPool(java.lang.Class clazz,
int initial)
throws java.lang.NoSuchMethodException,
java.lang.Exception
get
public Poolable get()
throws java.lang.Exception
-
- Specified by:
get in interface Pool
- Specified by:
get in class AbstractPool
-
- Throws:
java.lang.Exception
put
public void put(Poolable obj)
-
- Specified by:
put in interface Pool
- Specified by:
put in class AbstractPool
-
dispose
public final void dispose()
- Description copied from interface:
Disposable
-
The dispose operation is called at the end of a components lifecycle. This method will be called after Startable.stop() method (if implemented by component). Components use this method to release and destroy any resources that the Component owns.
-
- Specified by:
dispose in interface Disposable
-
Please see keelframework.org for information about new Keel releases.