org.apache.avalon.excalibur.component
Class DefaultComponentPoolController

java.lang.Object
  extended byorg.apache.avalon.excalibur.component.DefaultComponentPoolController
All Implemented Interfaces:
PoolController, ThreadSafe

Deprecated. DefaultComponentPool is no longer used by the PoolableComponentHandler.

public class DefaultComponentPoolController
extends java.lang.Object
implements PoolController, ThreadSafe

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

Since:
4.0
Version:
CVS $Revision: 1.4 $ $Date: 2004/02/28 11:47:14 $
Author:
Avalon Development Team

Field Summary
static int DEFAULT_AMOUNT
          Deprecated. Default increase/decrease amount
protected  int m_amount
          Deprecated. Used increase/decrease amount
 
Constructor Summary
DefaultComponentPoolController()
          Deprecated. The default constructor.
DefaultComponentPoolController(int amount)
          Deprecated. The alternate constructor.
 
Method Summary
 int grow()
          Deprecated. Called when a Pool reaches it's minimum.
 int shrink()
          Deprecated. Called when a pool reaches it's maximum.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_AMOUNT

public static final int DEFAULT_AMOUNT
Deprecated. 
Default increase/decrease amount

See Also:
Constant Field Values

m_amount

protected final int m_amount
Deprecated. 
Used increase/decrease amount

Constructor Detail

DefaultComponentPoolController

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


DefaultComponentPoolController

public DefaultComponentPoolController(int amount)
Deprecated. 
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.

Parameters:
amount - The amount to grow and shrink a pool by.
Method Detail

grow

public int grow()
Deprecated. 
Called when a Pool reaches it's minimum. Return the number of elements to increase pool by.

Specified by:
grow in interface PoolController
Returns:
the element increase

shrink

public int shrink()
Deprecated. 
Called when a pool reaches it's maximum. Returns the number of elements to decrease pool by.

Specified by:
shrink in interface PoolController
Returns:
the element decrease


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.