org.apache.avalon.excalibur.pool
Interface Poolable

All Known Subinterfaces:
Recyclable, Validatable

public interface Poolable

Poolable is a marker interface for Components that can be pooled. Components that are not pooled are created anew via a factory every time a request is made for the component.

Components implementing this interface can add the following attributes to its definition:


   <component pool-min="1" pool-max="10" pool-grow="1">
     <tag>value</tag>
   </component>
 
Where:
pool-min sets the minimum number of Components maintained by the pool
pool-max sets the maximum number of Components maintained by the pool
pool-grow sets the number of Components to grow or shrink the pool by whenever it becomes necessary to do so

NB: It was a deliberate choice not to extend Component. This will have to be reassed once we see it in action.

Since:
4.0
Version:
CVS $Revision: 1.2 $ $Date: 2003/02/20 17:09:24 $
Author:
Peter Donald



Copyright © 2000-2002 Apache Jakarta Project. All Rights Reserved.