org.apache.avalon.excalibur.pool
クラス AbstractPool

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLogEnabled
        |
        +--org.apache.avalon.excalibur.pool.AbstractPool
すべての実装インタフェース:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.logger.Loggable, Pool, org.apache.avalon.framework.thread.ThreadSafe
直系の既知のサブクラス:
DefaultPool

public abstract class AbstractPool
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements Pool, org.apache.avalon.framework.logger.Loggable, org.apache.avalon.framework.thread.ThreadSafe

This is an Pool that caches Poolable objects for reuse.

導入されたバージョン:
4.0
バージョン:
CVS $Revision: 1.9 $ $Date: 2002/01/26 16:54:22 $
作成者:
Berin Loritsch

フィールドの概要
static int DEFAULT_POOL_SIZE
           
protected  java.util.List m_active
           
protected  ObjectFactory m_factory
           
protected  boolean m_initialized
           
protected  int m_min
           
protected  Mutex m_mutex
           
protected  Buffer m_ready
           
 
コンストラクタの概要
AbstractPool(ObjectFactory factory)
          Create an AbstractPool.
 
メソッドの概要
abstract  Poolable get()
           
protected  void initialize()
           
protected  void internalGrow(int amount)
           
protected  void internalShrink(int amount)
           
protected  Poolable newPoolable()
          This is the method to override when you need to enforce creational policies.
abstract  void put(Poolable object)
           
protected  void removePoolable(Poolable poolable)
          This is the method to override when you need to enforce destructional policies.
 void setLogger(org.apache.log.Logger logger)
           
 int size()
           
 
クラス org.apache.avalon.framework.logger.AbstractLogEnabled から継承したメソッド
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

DEFAULT_POOL_SIZE

public static final int DEFAULT_POOL_SIZE

m_factory

protected final ObjectFactory m_factory

m_active

protected java.util.List m_active

m_ready

protected Buffer m_ready

m_mutex

protected Mutex m_mutex

m_initialized

protected boolean m_initialized

m_min

protected int m_min
コンストラクタの詳細

AbstractPool

public AbstractPool(ObjectFactory factory)
             throws java.lang.Exception
Create an AbstractPool. The pool requires a factory, and can optionally have a controller.
メソッドの詳細

setLogger

public void setLogger(org.apache.log.Logger logger)
定義:
インタフェース org.apache.avalon.framework.logger.Loggable 内の setLogger

initialize

protected void initialize()
                   throws java.lang.Exception

newPoolable

protected Poolable newPoolable()
                        throws java.lang.Exception
This is the method to override when you need to enforce creational policies.

removePoolable

protected void removePoolable(Poolable poolable)
This is the method to override when you need to enforce destructional policies.

size

public final int size()

get

public abstract Poolable get()
                      throws java.lang.Exception
定義:
インタフェース Pool 内の get

put

public abstract void put(Poolable object)
定義:
インタフェース Pool 内の put

internalGrow

protected void internalGrow(int amount)
                     throws java.lang.Exception

internalShrink

protected void internalShrink(int amount)
                       throws java.lang.Exception


"Copyright ? 2001 Apache Jakarta Project. All Rights Reserved."