|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 Cache
Cache.cleanup()
public void enableCaching(boolean enableCache)
Cache
enableCaching
in interface Cache
enableCache
- true to enable, false to disableCache.enableCaching(boolean)
public CachePolicy getCachePolicy()
Cache
getCachePolicy
in interface Cache
Cache.getCachePolicy()
public void remove(java.util.Set keySet)
Cache
remove
in interface Cache
keySet
- the keys to remove from the cacheCache.remove(Set)
public void removeAll()
Cache
removeAll
in interface Cache
Cache.removeAll()
public void setCachePolicy(CachePolicy policy)
Cache
setCachePolicy
in interface Cache
policy
- The new cache policyCache.setCachePolicy(CachePolicy)
public void setName(java.lang.String name)
NamedCache
setName
in interface NamedCache
name
- StringNamedCache.setName(String)
public java.lang.String getName()
NamedCache
getName
in interface NamedCache
NamedCache.getName()
public int size()
size
in interface java.util.Map
Map.size()
public boolean isEmpty()
isEmpty
in interface java.util.Map
Map.isEmpty()
public boolean containsKey(java.lang.Object arg0)
containsKey
in interface java.util.Map
Map.containsKey(Object)
public boolean containsValue(java.lang.Object arg0)
containsValue
in interface java.util.Map
Map.containsValue(Object)
public java.lang.Object get(java.lang.Object arg0)
get
in interface java.util.Map
Map.get(Object)
public java.lang.Object put(java.lang.Object arg0, java.lang.Object arg1)
put
in interface java.util.Map
Map.put(Object, Object)
public java.lang.Object remove(java.lang.Object arg0)
remove
in interface java.util.Map
Map.remove(Object)
public void putAll(java.util.Map arg0)
putAll
in interface java.util.Map
Map.putAll(Map)
public void clear()
clear
in interface java.util.Map
Map.clear()
public java.util.Set keySet()
keySet
in interface java.util.Map
Map.keySet()
public java.util.Collection values()
values
in interface java.util.Map
Map.values()
public java.util.Set entrySet()
entrySet
in interface java.util.Map
Map.entrySet()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |