|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wiley.posa3.caching.CacheImpl
CacheImpl is an implementation of the Cache interface. It maintains and manages the cached resources and provides an API that allows acquisition and release of these resources.
| Constructor Summary | |
CacheImpl()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CacheImpl()
| Method Detail |
public void release(Resource resource)
release in interface Cacheresource - the resource that has been released and is to
be put into the cache
public Resource acquire(Identity id)
throws ResourceNotFound
acquire in interface Cacheid - 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 | |||||||||