|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Cache is the base interface for any type of caching implementation. It provides an API that allows acquisition and release of these resources.
| Method Summary | |
Resource |
acquire(Identity id)
Acquire the resource from the cache corresponding to id. |
void |
release(Resource resource)
Put the released resource into the cache so that it can be acquired later. |
| Method Detail |
public void release(Resource resource)
resource - the resource that has been released and is to
be put into the cache
public Resource acquire(Identity id)
throws ResourceNotFound
id - the identity of the resource that needs to be
acquired.
ResourceNotFound - is thrown if the resource
corresponding to Identity was not found in the cache
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||