|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.excalibur.mpool.FixedSizePool
This is an Pool
that caches Poolable objects for reuse.
Please note that this pool offers no resource limiting whatsoever.
Constructor Summary | |
FixedSizePool(ObjectFactory factory,
int size)
|
Method Summary | |
java.lang.Object |
acquire()
Acquire an instance of the pooled object. |
void |
dispose()
The dispose operation is called at the end of a components lifecycle. |
java.lang.Object |
newInstance()
Create a new instance of the object being pooled. |
void |
release(java.lang.Object object)
Release the instance of the pooled object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FixedSizePool(ObjectFactory factory, int size) throws java.lang.Exception
Method Detail |
public java.lang.Object acquire()
Pool
acquire
in interface Pool
public void release(java.lang.Object object)
Pool
release
in interface Pool
object
- The pooled object to release to the pool.public java.lang.Object newInstance() throws java.lang.Exception
Pool
newInstance
in interface Pool
java.lang.Exception
- if the instance cannot be createdpublic void dispose()
Disposable
dispose
in interface Disposable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |