org.apache.avalon.excalibur.pool
Interface PoolController

All Known Implementing Classes:
DefaultComponentPoolController, DefaultPoolController

public interface PoolController

This is the interface you implement if you want to control how Pools capacity changes overtime. It gets called everytime that a Pool tries to go below or above it's minimum or maximum.

Since:
4.0
Version:
CVS $Revision: 1.4 $ $Date: 2001/12/11 09:53:32 $
Author:
Stefano Mazzocchi, Peter Donald, Berin Loritsch

Method Summary
 int grow()
          Called when a Pool reaches it's minimum.
 int shrink()
          Called when a pool reaches it's maximum.
 

Method Detail

grow

public int grow()
Called when a Pool reaches it's minimum. Return the number of elements to increase minimum and maximum by.
Returns:
the element increase

shrink

public int shrink()
Called when a pool reaches it's maximum. Returns the number of elements to decrease mi and max by.
Returns:
the element decrease


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.