|
Xindice API version 1.2m1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xindice.util.ObjectPool
ObjectPool is an abstract Object Pool implementation. In order to create a working ObjectPool, one must extend ObjectPool and implement the createObject method.
| Constructor Summary | |
ObjectPool()
|
|
| Method Summary | |
protected abstract Poolable |
createObject()
createObject needs to be implemented in order to allow the ObjectPool to produce Pooled objects. |
Poolable |
getObject()
getObject retrieves a Poolable object from the Object pool, creating a new instance if necessary. |
boolean |
isEmpty()
isEmpty returns whether the ObjectPool is currently empty. |
void |
putObject(Poolable object)
putObject should be called by Poolable objects or consumers of Poolable objects to return a Pooled object to the Object Pool. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ObjectPool()
| Method Detail |
protected abstract Poolable createObject()
public Poolable getObject()
public void putObject(Poolable object)
object - The Poolable object instancepublic boolean isEmpty()
|
Xindice API version 1.2m1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||