|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.services.cache.PerEntryTimeoutCachePolicy
public class PerEntryTimeoutCachePolicy
| Constructor Summary | |
|---|---|
PerEntryTimeoutCachePolicy()
|
|
PerEntryTimeoutCachePolicy(long timeout)
|
|
| Method Summary | |
|---|---|
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(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 |
setDefaultTimeout(long l)
This method sets the default timeout value for cache entries |
void |
setTimeout(Object key,
long timeout)
This method sets the timeout for the specified cache entry |
void |
setTimeout(Set keys,
long timeout)
This method sets the timeout for the specified set of cache entries |
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 |
| 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(Object key,
long timeout)
key - timeout -
public void setTimeout(Set keys,
long timeout)
keys - timeout - public Set cleanup()
cleanup in interface CachePolicy
public boolean isCacheEntryValid(Object key,
Object value)
isCacheEntryValid in interface CachePolicykey - the key from of object to checkvalue - the value of the object to check
public void remove(Object key)
remove in interface CachePolicykey - the key of the entry to remove from the meta datapublic void remove(Set keySet)
remove in interface CachePolicykeySet - a set of keys to remove from the metadatapublic void removeAll()
removeAll in interface CachePolicypublic void updateCacheEntries(Map values)
updateCacheEntries in interface CachePolicyvalues - a map of values to update
public void updateCacheEntry(Object key,
Object value)
updateCacheEntry in interface CachePolicykey - 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 | |||||||||