public class ConsulWatchedConfigurationSource
extends com.google.common.util.concurrent.AbstractExecutionThreadService
implements com.netflix.config.WatchedConfigurationSource
| Constructor and Description |
|---|
ConsulWatchedConfigurationSource(String rootPath,
com.ecwid.consul.v1.kv.KeyValueClient client) |
ConsulWatchedConfigurationSource(String rootPath,
com.ecwid.consul.v1.kv.KeyValueClient client,
long watchInterval,
TimeUnit watchIntervalUnit) |
ConsulWatchedConfigurationSource(String rootPath,
com.ecwid.consul.v1.kv.KeyValueClient client,
long watchInterval,
TimeUnit watchIntervalUnit,
String aclToken) |
ConsulWatchedConfigurationSource(String rootPath,
com.ecwid.consul.v1.kv.KeyValueClient client,
String aclToken) |
| Modifier and Type | Method and Description |
|---|---|
void |
addUpdateListener(com.netflix.config.WatchedUpdateListener l) |
Map<String,Object> |
getCurrentData() |
void |
removeUpdateListener(com.netflix.config.WatchedUpdateListener l) |
void |
runOnce() |
public ConsulWatchedConfigurationSource(String rootPath, com.ecwid.consul.v1.kv.KeyValueClient client)
public ConsulWatchedConfigurationSource(String rootPath, com.ecwid.consul.v1.kv.KeyValueClient client, String aclToken)
public ConsulWatchedConfigurationSource(String rootPath, com.ecwid.consul.v1.kv.KeyValueClient client, long watchInterval, TimeUnit watchIntervalUnit)
public void addUpdateListener(com.netflix.config.WatchedUpdateListener l)
addUpdateListener in interface com.netflix.config.WatchedConfigurationSourcepublic void removeUpdateListener(com.netflix.config.WatchedUpdateListener l)
removeUpdateListener in interface com.netflix.config.WatchedConfigurationSourcepublic Map<String,Object> getCurrentData() throws Exception
getCurrentData in interface com.netflix.config.WatchedConfigurationSourceExceptionpublic void runOnce()
throws InterruptedException
InterruptedExceptionCopyright © 2015 Irenical. All rights reserved.