|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.blur.CachedMap
public abstract class CachedMap
Constructor Summary | |
---|---|
CachedMap()
|
Method Summary | |
---|---|
abstract void |
clearCache()
Clears the in memory cache of the map, this forces a re-read from the source. |
abstract Map<String,String> |
fetchAllFromSource()
Fetches all the keys and values for the map from the source. |
abstract String |
get(String key)
Fetches the value by key, if the in memory cache is missing the value then re-read from source if missing from source return null. |
abstract boolean |
putIfMissing(String key,
String value)
Puts the value with the given key into the map if the key was missing. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachedMap()
Method Detail |
---|
public abstract void clearCache() throws IOException
IOException
public abstract String get(String key) throws IOException
key
- the key.
IOException
public abstract boolean putIfMissing(String key, String value) throws IOException
key
- the key.value
- the value.
IOException
public abstract Map<String,String> fetchAllFromSource() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |