public class ConfigClientWatch extends Object implements Closeable, org.springframework.context.EnvironmentAware
| Constructor and Description |
|---|
ConfigClientWatch(org.springframework.cloud.context.refresh.ContextRefresher refresher) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
setEnvironment(org.springframework.core.env.Environment environment) |
void |
start() |
void |
watchConfigServer() |
public ConfigClientWatch(org.springframework.cloud.context.refresh.ContextRefresher refresher)
public void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment in interface org.springframework.context.EnvironmentAware@PostConstruct public void start()
@Scheduled(initialDelayString="${spring.cloud.config.watch.initialDelay:180000}",
fixedDelayString="${spring.cloud.config.watch.delay:500}")
public void watchConfigServer()
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2017 Pivotal Software, Inc.. All rights reserved.