org.apache.excalibur.mpool
Class FixedSizePool
java.lang.Object
org.apache.excalibur.mpool.FixedSizePool
- All Implemented Interfaces:
- org.apache.avalon.framework.activity.Disposable, org.apache.excalibur.mpool.Pool
- public final class FixedSizePool
- extends java.lang.Object
- implements org.apache.excalibur.mpool.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.4 $ $Date: 2004/02/28 11:47:34 $
- Author:
- Avalon Development Team
Constructor Summary |
FixedSizePool(org.apache.excalibur.mpool.ObjectFactory factory,
int size)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FixedSizePool
public FixedSizePool(org.apache.excalibur.mpool.ObjectFactory factory,
int size)
throws java.lang.Exception
acquire
public java.lang.Object acquire()
- Specified by:
acquire
in interface org.apache.excalibur.mpool.Pool
release
public void release(java.lang.Object object)
- Specified by:
release
in interface org.apache.excalibur.mpool.Pool
newInstance
public java.lang.Object newInstance()
throws java.lang.Exception
- Specified by:
newInstance
in interface org.apache.excalibur.mpool.Pool
- Throws:
java.lang.Exception
dispose
public void dispose()
- Specified by:
dispose
in interface org.apache.avalon.framework.activity.Disposable
Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.