|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Pool provides an interface for the acquisition and release of * resources by resource users. An implementation of the Pool interface would maintain a collection of Resource objects. When a user tries to acquire a resource, the resource would be fetched from this collection. Similarly, when the user releases the resource, it would be returned back to the collection.
| Method Summary | |
Resource |
acquire()
Acquire a resource from the pool. |
void |
release(Resource resource)
Release the resource back to the pool. |
| Method Detail |
public Resource acquire()
public void release(Resource resource)
resource - the resource that should be put back in the pool.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||