public class KVCache extends ConsulCache<String,Value>
ConsulCache.CallbackConsumer<V>, ConsulCache.Listener<K,V>| Modifier and Type | Method and Description |
|---|---|
static KVCache |
newCache(KeyValueClient kvClient,
String rootPath,
int watchSeconds)
Factory method to construct a String/
Value map with a 10 second
block interval |
addListener, awaitInitialized, getMap, getState, removeListener, start, stop, watchParamspublic static KVCache newCache(KeyValueClient kvClient, String rootPath, int watchSeconds)
Value map with a 10 second
block intervalkvClient - the KeyValueClient to userootPath - the root pathCopyright © 2016. All rights reserved.