|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bankframe.services.cache.NullPolicy
The NullPolicy type. This policy object has no policy!. It always determines an entry to be valid and never provides any
entries to be removed. Using this policy object with a Cache
should be equivalent to
using a standard Hashtable
or HashMap
object. Since this
policy maintains no state and can never change, a single instance of this policy can
be shared between all clients that need to use it. This instance is called NullPolicy.INSTANCE
Field Summary | |
static NullPolicy |
INSTANCE
This is the single instance of this policy object |
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final NullPolicy INSTANCE
Method Detail |
public java.util.Set cleanup()
CachePolicy
cleanup
in interface CachePolicy
public boolean isCacheEntryValid(java.lang.Object key, java.lang.Object value)
CachePolicy
isCacheEntryValid
in interface CachePolicy
public void remove(java.lang.Object key)
CachePolicy
remove
in interface CachePolicy
public void remove(java.util.Set keySet)
CachePolicy
remove
in interface CachePolicy
public void removeAll()
CachePolicy
removeAll
in interface CachePolicy
public void updateCacheEntries(java.util.Map values)
CachePolicy
updateCacheEntries
in interface CachePolicy
public void updateCacheEntry(java.lang.Object key, java.lang.Object value)
CachePolicy
updateCacheEntry
in interface CachePolicy
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |