|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Pool defines the interface for a pool of resources.
Method Summary | |
boolean |
active()
Returns true if this pool is active. |
Object |
allocate(boolean waitFlag)
Allocate a resource from the pool. |
int |
available()
Return the number of available resources. |
void |
release(Object o)
Release a resource and return it to the pool. |
void |
start()
Start allocating resources. |
void |
stop()
Stop allocating resources. |
Method Detail |
public boolean active()
public Object allocate(boolean waitFlag)
waitFlag
- true if method should wait for an available resource.
public int available()
public void release(Object o)
o
- the resource to be released.public void start()
public void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |