|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.bankframe.services.cache.NullCache
This class implements Cache & NamedCache and is intended for use when a implementation code refers to a named cache, but at runtime caching is not required. The cache therefore has no memory overhead. Note that this cache always uses NullPolicy.INSTANCE. No other policy can be assigned.
| Nested Class Summary |
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Constructor Summary | |
NullCache()
Constructor for NullCache. |
|
| Method Summary | |
void |
cleanup()
This method cleans up the cache by removing un-needed entries |
void |
clear()
|
boolean |
containsKey(java.lang.Object arg0)
|
boolean |
containsValue(java.lang.Object arg0)
|
void |
enableCaching(boolean enableCache)
This method enables or disables caching. |
java.util.Set |
entrySet()
|
java.lang.Object |
get(java.lang.Object arg0)
|
CachePolicy |
getCachePolicy()
This method gets the CachePolicy object for this Cache |
java.lang.String |
getName()
Returns the name. |
boolean |
isEmpty()
|
java.util.Set |
keySet()
|
java.lang.Object |
put(java.lang.Object arg0,
java.lang.Object arg1)
|
void |
putAll(java.util.Map arg0)
|
java.lang.Object |
remove(java.lang.Object arg0)
|
void |
remove(java.util.Set keySet)
This method removes the specified keys from the cache and the data store |
void |
removeAll()
Removes all objects from the cache and from the data store. |
void |
setCachePolicy(CachePolicy policy)
This method sets the CachePolicy object for this Cache |
void |
setName(java.lang.String name)
Returns the value. |
int |
size()
|
java.util.Collection |
values()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
| Constructor Detail |
public NullCache()
| Method Detail |
public void cleanup()
Cache
cleanup in interface CacheCache.cleanup()public void enableCaching(boolean enableCache)
Cache
enableCaching in interface CacheenableCache - true to enable, false to disableCache.enableCaching(boolean)public CachePolicy getCachePolicy()
Cache
getCachePolicy in interface CacheCache.getCachePolicy()public void remove(java.util.Set keySet)
Cache
remove in interface CachekeySet - the keys to remove from the cacheCache.remove(Set)public void removeAll()
Cache
removeAll in interface CacheCache.removeAll()public void setCachePolicy(CachePolicy policy)
Cache
setCachePolicy in interface Cachepolicy - The new cache policyCache.setCachePolicy(CachePolicy)public void setName(java.lang.String name)
NamedCache
setName in interface NamedCachename - StringNamedCache.setName(String)public java.lang.String getName()
NamedCache
getName in interface NamedCacheNamedCache.getName()public int size()
size in interface java.util.MapMap.size()public boolean isEmpty()
isEmpty in interface java.util.MapMap.isEmpty()public boolean containsKey(java.lang.Object arg0)
containsKey in interface java.util.MapMap.containsKey(Object)public boolean containsValue(java.lang.Object arg0)
containsValue in interface java.util.MapMap.containsValue(Object)public java.lang.Object get(java.lang.Object arg0)
get in interface java.util.MapMap.get(Object)
public java.lang.Object put(java.lang.Object arg0,
java.lang.Object arg1)
put in interface java.util.MapMap.put(Object, Object)public java.lang.Object remove(java.lang.Object arg0)
remove in interface java.util.MapMap.remove(Object)public void putAll(java.util.Map arg0)
putAll in interface java.util.MapMap.putAll(Map)public void clear()
clear in interface java.util.MapMap.clear()public java.util.Set keySet()
keySet in interface java.util.MapMap.keySet()public java.util.Collection values()
values in interface java.util.MapMap.values()public java.util.Set entrySet()
entrySet in interface java.util.MapMap.entrySet()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||