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:
- org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.logger.LogEnabled, Pool, org.apache.avalon.framework.thread.ThreadSafe
- Direct Known Subclasses:
- SoftResourceLimitingPool
- public class DefaultPool
- extends AbstractPool
- implements org.apache.avalon.framework.activity.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:
- Avalon Development Team
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 |
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 Exception
DefaultPool
public DefaultPool(ObjectFactory factory,
PoolController controller,
int initial,
int maximum)
throws Exception
DefaultPool
public DefaultPool(ObjectFactory factory)
throws Exception
DefaultPool
public DefaultPool(Class clazz,
int initial,
int maximum)
throws NoSuchMethodException,
Exception
DefaultPool
public DefaultPool(Class clazz,
int initial)
throws NoSuchMethodException,
Exception
get
public Poolable get()
throws Exception
- Specified by:
get
in interface Pool
- Specified by:
get
in class AbstractPool
- Throws:
Exception
put
public void put(Poolable obj)
- Specified by:
put
in interface Pool
- Specified by:
put
in class AbstractPool
dispose
public final void dispose()
- Specified by:
dispose
in interface org.apache.avalon.framework.activity.Disposable
Copyright © . All Rights Reserved.