org.apache.avalon.excalibur.component
クラス DefaultComponentPoolController

java.lang.Object
  |
  +--org.apache.avalon.excalibur.component.DefaultComponentPoolController
すべての実装インタフェース:
PoolController, org.apache.avalon.framework.thread.ThreadSafe

public class DefaultComponentPoolController
extends java.lang.Object
implements PoolController, org.apache.avalon.framework.thread.ThreadSafe

This is the PoolController for the Avalon Excalibur Component Management Framework.

導入されたバージョン:
4.0
バージョン:
CVS $Revision: 1.4 $ $Date: 2001/12/11 09:53:27 $
作成者:
Giacomo Pati, Berin Loritsch

フィールドの概要
static int DEFAULT_AMOUNT
          Default increase/decrease amount
protected  int m_amount
          Used increase/decrease amount
 
コンストラクタの概要
DefaultComponentPoolController()
          The default constructor.
DefaultComponentPoolController(int amount)
          The alternate constructor.
 
メソッドの概要
 int grow()
          Called when a Pool reaches it's minimum.
 int shrink()
          Called when a pool reaches it's maximum.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

DEFAULT_AMOUNT

public static final int DEFAULT_AMOUNT
Default increase/decrease amount

m_amount

protected final int m_amount
Used increase/decrease amount
コンストラクタの詳細

DefaultComponentPoolController

public DefaultComponentPoolController()
The default constructor. It initializes the used increase/ decrease amount to the default.

DefaultComponentPoolController

public DefaultComponentPoolController(int amount)
The alternate constructor. It initializes the used increase/ decrease amount to the specified number only if it is greater than 0. Otherwise it uses the default amount.
パラメータ:
amount - The amount to grow and shrink a pool by.
メソッドの詳細

grow

public int grow()
Called when a Pool reaches it's minimum. Return the number of elements to increase pool by.
定義:
インタフェース PoolController 内の grow
戻り値:
the element increase

shrink

public int shrink()
Called when a pool reaches it's maximum. Returns the number of elements to decrease pool by.
定義:
インタフェース PoolController 内の shrink
戻り値:
the element decrease


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