|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Cache
This interface defines the the caching in MCA services
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Method Summary | |
|---|---|
void |
addCacheListener(Object key,
CacheListener listener)
Adds a CacheListener for a specified key. |
void |
cleanup()
This method cleans up the cache by removing un-needed entries |
void |
enableCaching(boolean enableCache)
This method enables or disables caching. |
CachePolicy |
getCachePolicy()
This method gets the CachePolicy object for this Cache |
void |
remove(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 |
removeCacheListener(Object key,
CacheListener listener)
Removes a CacheListener for a specified key. |
void |
setCachePolicy(CachePolicy policy)
This method sets the CachePolicy object for this Cache |
| Methods inherited from interface java.util.Map |
|---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Method Detail |
|---|
void cleanup()
void enableCaching(boolean enableCache)
enableCache - true to enable, false to disableCachePolicy getCachePolicy()
void remove(Set keySet)
keySet - the keys to remove from the cachevoid removeAll()
void setCachePolicy(CachePolicy policy)
policy - The new cache policy
void addCacheListener(Object key,
CacheListener listener)
void removeCacheListener(Object key,
CacheListener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||