org.apache.avalon.excalibur.pool
Class FixedSizePool

java.lang.Object
  |
  +--org.apache.avalon.excalibur.pool.FixedSizePool
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.activity.Disposable, Pool

public final class FixedSizePool
extends java.lang.Object
implements Pool, org.apache.avalon.framework.activity.Disposable

This is an Pool that caches Poolable objects for reuse. Please note that this pool offers no resource limiting whatsoever.

Since:
4.1
Version:
CVS $Revision: 1.2 $ $Date: 2001/12/26 16:15:23 $
Author:
Berin Loritsch

Constructor Summary
FixedSizePool(ObjectFactory factory, int size)
           
 
Method Summary
 void dispose()
           
 Poolable get()
           
 void put(Poolable object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedSizePool

public FixedSizePool(ObjectFactory factory,
                     int size)
              throws java.lang.Exception
Method Detail

get

public Poolable get()
Specified by:
get in interface Pool

put

public void put(Poolable object)
Specified by:
put in interface Pool

dispose

public void dispose()
Specified by:
dispose in interface org.apache.avalon.framework.activity.Disposable


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.