public class ConfigWatch extends Object implements Closeable, org.springframework.context.ApplicationEventPublisherAware
| Constructor and Description |
|---|
ConfigWatch(ConsulConfigProperties properties,
List<String> contexts,
com.ecwid.consul.v1.ConsulClient consul) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher) |
void |
start() |
void |
watchConfigKeyValues() |
public ConfigWatch(ConsulConfigProperties properties, List<String> contexts, com.ecwid.consul.v1.ConsulClient consul)
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 © 2016 Pivotal Software, Inc.. All rights reserved.