|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CachePolicy
This interface defines the methods that all cache policies must provide. A cache policy determines when values should be removed from the cache.
Method Summary | |
---|---|
Set |
cleanup()
This method returns a set containing the keys of values that have expired. |
boolean |
isCacheEntryValid(Object key,
Object value)
This method determines if the specified entry should be removed from the cache |
void |
remove(Object key)
This method signals the entry has been removed from the cache |
void |
remove(Set keySet)
This method signals the set of entries has been removed from the cache |
void |
removeAll()
This method signals that all entries have been removed from the cache |
void |
updateCacheEntries(Map values)
This method updates all the specified values |
void |
updateCacheEntry(Object key,
Object value)
This method updates the last access time for the specified entry |
Method Detail |
---|
Set cleanup()
boolean isCacheEntryValid(Object key, Object value)
void remove(Object key)
void remove(Set keySet)
void removeAll()
void updateCacheEntries(Map values)
void updateCacheEntry(Object key, Object value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |