|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
the method a object pool needed
| Method Summary | |
void |
clear()
Clears any objects sitting idle in the pool, releasing any associated resources |
java.lang.String |
getObjectClass()
get the pooled object's class type, it return by object pool's factory |
ObjectFactory |
getObjectFactory()
get the factory use to create new instances |
int |
getRest()
get the count of rest object |
int |
getWorking()
get the count of working object |
boolean |
removeObject(PoolableObject obj)
remove a poolable object from the pool |
boolean |
restoreObject(PoolableObject obj)
restore the retrived object to object pool |
PoolableObject |
retrieveObject()
retrieve Object from object pool |
| Method Detail |
public PoolableObject retrieveObject()
throws java.lang.Exception
java.lang.Exceptionpublic boolean restoreObject(PoolableObject obj)
public boolean removeObject(PoolableObject obj)
obj -
public void clear()
public ObjectFactory getObjectFactory()
public java.lang.String getObjectClass()
public int getWorking()
public int getRest()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||