|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.services.cache.PerEntryTimeoutCachePolicy
Constructor Summary | |
PerEntryTimeoutCachePolicy()
|
|
PerEntryTimeoutCachePolicy(long timeout)
|
Method Summary | |
java.util.Set |
cleanup()
This method returns a set containing the keys of values that have expired. |
long |
getDefaultTimeout()
This method returns the default timeout value for cache entries |
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 |
setDefaultTimeout(long l)
This method sets the default timeout value for cache entries |
void |
setTimeout(java.lang.Object key,
long timeout)
This method sets the timeout for the specified cache entry |
void |
setTimeout(java.util.Set keys,
long timeout)
This method sets the timeout for the specified set of cache entries |
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PerEntryTimeoutCachePolicy()
public PerEntryTimeoutCachePolicy(long timeout)
Method Detail |
public void setTimeout(java.lang.Object key, long timeout)
key
- timeout
- public void setTimeout(java.util.Set keys, long timeout)
keys
- timeout
- public java.util.Set cleanup()
cleanup
in interface CachePolicy
public boolean isCacheEntryValid(java.lang.Object key, java.lang.Object value)
isCacheEntryValid
in interface CachePolicy
key
- the key from of object to checkvalue
- the value of the object to check
public void remove(java.lang.Object key)
remove
in interface CachePolicy
key
- the key of the entry to remove from the meta datapublic void remove(java.util.Set keySet)
remove
in interface CachePolicy
public void removeAll()
removeAll
in interface CachePolicy
public void updateCacheEntries(java.util.Map values)
updateCacheEntries
in interface CachePolicy
values
- a map of values to updatepublic void updateCacheEntry(java.lang.Object key, java.lang.Object value)
updateCacheEntry
in interface CachePolicy
key
- the key of the cache entry to updatevalue
- the value for this keypublic long getDefaultTimeout()
public void setDefaultTimeout(long l)
l
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |