public class ConfigWatch extends Object implements Closeable, org.springframework.context.ApplicationEventPublisherAware
| Constructor and Description |
|---|
ConfigWatch(ConsulConfigProperties properties,
com.ecwid.consul.v1.ConsulClient consul,
LinkedHashMap<String,Long> initialIndexes) |
ConfigWatch(ConsulConfigProperties properties,
List<String> contexts,
com.ecwid.consul.v1.ConsulClient consul)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher) |
void |
start() |
void |
watchConfigKeyValues() |
@Deprecated public ConfigWatch(ConsulConfigProperties properties, List<String> contexts, com.ecwid.consul.v1.ConsulClient consul)
public ConfigWatch(ConsulConfigProperties properties, com.ecwid.consul.v1.ConsulClient consul, LinkedHashMap<String,Long> initialIndexes)
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAware@PostConstruct public void start()
@Scheduled(fixedDelayString="${spring.cloud.consul.config.watch.delay:1000}")
public void watchConfigKeyValues()
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2018 Pivotal Software, Inc.. All rights reserved.