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.component.Component, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.logger.Loggable, Pool, org.apache.avalon.framework.thread.ThreadSafe
Direct Known Subclasses:
SoftResourceLimitingPool

public synchronized class DefaultPool
extends AbstractPool
implements org.apache.avalon.framework.activity.Disposable


Field Summary
protected  PoolController m_controller
           
protected  boolean m_disposed
           
protected  int m_max
           
protected  int m_min
           
protected  boolean m_quickFail
           
 
Fields inherited from class org.apache.avalon.excalibur.pool.AbstractPool
DEFAULT_POOL_SIZE, m_active, m_factory, m_initialized, m_mutex, m_ready
 
Constructor Summary
DefaultPool(java.lang.Class, int)
           
DefaultPool(java.lang.Class, int, int)
           
DefaultPool(ObjectFactory)
           
DefaultPool(ObjectFactory, PoolController)
           
DefaultPool(ObjectFactory, PoolController, int, int)
           
 
Method Summary
 void dispose()
           
 Poolable get()
           
 void put(Poolable)
           
 
Methods inherited from class org.apache.avalon.excalibur.pool.AbstractPool
initialize, internalGrow, internalShrink, newPoolable, removePoolable, setLogger, size
 
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
 

Field Detail

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
Constructor Detail

DefaultPool

public DefaultPool(ObjectFactory,
                   PoolController)
            throws java.lang.Exception

DefaultPool

public DefaultPool(ObjectFactory,
                   PoolController,
                   int,
                   int)
            throws java.lang.Exception

DefaultPool

public DefaultPool(ObjectFactory)
            throws java.lang.Exception

DefaultPool

public DefaultPool(java.lang.Class,
                   int,
                   int)
            throws java.lang.NoSuchMethodException,
                   java.lang.Exception

DefaultPool

public DefaultPool(java.lang.Class,
                   int)
            throws java.lang.NoSuchMethodException,
                   java.lang.Exception
Method Detail

get

public Poolable get()
             throws java.lang.Exception
Overrides:
get in class AbstractPool

put

public void put(Poolable)
Overrides:
put in class AbstractPool

dispose

public final void dispose()
Specified by:
dispose in interface org.apache.avalon.framework.activity.Disposable


Copyright 2001 Apache Jakarta Project. All Rights Reserved.