|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Method Summary | |
void |
clear()
Clears any objects sitting idle in the pool, releasing any associated resources |
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(java.lang.Object key)
remove a poolable object from the pool |
boolean |
restoreObject(java.lang.Object key,
PoolableObject obj)
restore the retrived object to object pool |
PoolableObject |
retrieveObject(java.lang.Object key)
retrieve Object from object pool with the key 如果这个 key 还不存在,就新建该 key ,并返回和该 key 关联的对象 |
| Method Detail |
public PoolableObject retrieveObject(java.lang.Object key)
throws java.lang.Exception
java.lang.Exception
public boolean restoreObject(java.lang.Object key,
PoolableObject obj)
public boolean removeObject(java.lang.Object key)
key -
public void clear()
public ObjectFactory getObjectFactory()
public int getWorking()
public int getRest()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||