|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Pool<T>
Pool of resources
Method Summary | |
---|---|
void |
destroy()
Destroys the pool |
T |
getResource()
|
void |
returnBrokenResource(T resource)
|
void |
returnResource(T resource)
|
Method Detail |
---|
T getResource()
void returnBrokenResource(T resource)
resource
- A broken resource that should be invalidatedvoid returnResource(T resource)
resource
- A resource to return to the poolvoid destroy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |