|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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 | |
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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ObjectPool()
Method Detail |
public Poolable getObject()
public void putObject(Poolable object)
object
- The Poolable object instancepublic boolean isEmpty()
|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |