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:
- Pool, Disposable, LogEnabled, 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:
- Avalon Development Team
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
- Throws:
Exception
DefaultPool
public DefaultPool(ObjectFactory factory,
PoolController controller,
int initial,
int maximum)
throws Exception
- Throws:
Exception
DefaultPool
public DefaultPool(ObjectFactory factory)
throws Exception
- Throws:
Exception
DefaultPool
public DefaultPool(Class clazz,
int initial,
int maximum)
throws NoSuchMethodException,
Exception
- Throws:
NoSuchMethodException
Exception
DefaultPool
public DefaultPool(Class clazz,
int initial)
throws NoSuchMethodException,
Exception
- 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 Disposable
Copyright © 1997-2012 The Apache Software Foundation. All Rights Reserved.