|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The base interface for every cache regardless of implementation.
The interface supports the basic semantics of a cache inluding accessor, mutator, and invalidation.
Specific factories and cache managers will provide this interface or contain the interface to provide caching services to applications.
UpdateableCache
Method Summary | |
java.lang.Object |
get(java.lang.Object key)
Gets a value from the cache. |
void |
invalidate(java.lang.Object key)
Invalidate an object in the cache according to the update strategy. |
void |
invalidateAll()
Invalidates all the objects in the cache in one shot. |
java.lang.Object[] |
keys()
Returns all the keys in the cache. |
void |
put(java.lang.Object key,
java.lang.Object value)
Put an object in the cache possibly updating and replacing an existing value. |
java.lang.Object[] |
values()
Returns all the values in the cache. |
Method Detail |
public void invalidate(java.lang.Object key)
public void invalidateAll()
The action is performed according to the update strategy of the implementation.
public void put(java.lang.Object key, java.lang.Object value)
Note: some implementations elect to defer this operation so the element may not be immediately present.
public java.lang.Object get(java.lang.Object key)
Returning null reports that the element cannot be found or regenerate with the key provided.
public java.lang.Object[] values()
public java.lang.Object[] keys()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |