|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 | |
java.util.Set |
cleanup()
This method returns a set containing the keys of values that have expired. |
boolean |
isCacheEntryValid(java.lang.Object key,
java.lang.Object value)
This method determines if the specified entry should be removed from the cache |
void |
remove(java.lang.Object key)
This method signals the entry has been removed from the cache |
void |
remove(java.util.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(java.util.Map values)
This method updates all the specified values |
void |
updateCacheEntry(java.lang.Object key,
java.lang.Object value)
This method updates the last access time for the specified entry |
Method Detail |
public java.util.Set cleanup()
public boolean isCacheEntryValid(java.lang.Object key, java.lang.Object value)
public void remove(java.lang.Object key)
public void remove(java.util.Set keySet)
public void removeAll()
public void updateCacheEntries(java.util.Map values)
public void updateCacheEntry(java.lang.Object key, java.lang.Object value)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |