org.apache.excalibur.mpool
Class FixedSizePool

java.lang.Object
  extended by org.apache.excalibur.mpool.FixedSizePool
All Implemented Interfaces:
Disposable, Pool

public final class FixedSizePool
extends Object
implements Pool, 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.4 $ $Date: 2004/02/28 11:47:34 $
Author:
Avalon Development Team

Constructor Summary
FixedSizePool(ObjectFactory factory, int size)
           
 
Method Summary
 Object acquire()
           
 void dispose()
           
 Object newInstance()
           
 void release(Object 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 Exception
Throws:
Exception
Method Detail

acquire

public Object acquire()
Specified by:
acquire in interface Pool

release

public void release(Object object)
Specified by:
release in interface Pool

newInstance

public Object newInstance()
                   throws Exception
Specified by:
newInstance in interface Pool
Throws:
Exception

dispose

public void dispose()
Specified by:
dispose in interface Disposable


Copyright © 2012 Apache Software Foundation. All Rights Reserved.