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.6 $ $Date: 2004/03/29 16:50:37 $
Author:
Avalon Development Team

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 © 1997-2005 The Apache Software Foundation. All Rights Reserved.