org.apache.avalon.excalibur.pool
Class DefaultPoolController

java.lang.Object
  extended by org.apache.avalon.excalibur.pool.DefaultPoolController
All Implemented Interfaces:
org.apache.avalon.excalibur.pool.PoolController

public class DefaultPoolController
extends java.lang.Object
implements org.apache.avalon.excalibur.pool.PoolController

This is a PoolController that controls how many instances of a Poolable are created at one time.

Since:
4.0
Version:
CVS $Revision: 1.5 $ $Date: 2004/03/29 16:50:37 $
Author:
Avalon Development Team

Field Summary
private  int m_amount
           
 
Constructor Summary
DefaultPoolController()
           
DefaultPoolController(int amount)
           
 
Method Summary
 int grow()
           
 int shrink()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_amount

private final int m_amount
Constructor Detail

DefaultPoolController

public DefaultPoolController()

DefaultPoolController

public DefaultPoolController(int amount)
Method Detail

grow

public int grow()
Specified by:
grow in interface org.apache.avalon.excalibur.pool.PoolController

shrink

public int shrink()
Specified by:
shrink in interface org.apache.avalon.excalibur.pool.PoolController