Class ConfigClientWatch
- java.lang.Object
-
- org.springframework.cloud.config.client.ConfigClientWatch
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.springframework.beans.factory.Aware,org.springframework.context.EnvironmentAware
public class ConfigClientWatch extends Object implements Closeable, org.springframework.context.EnvironmentAware
- Author:
- Spencer Gibb
-
-
Constructor Summary
Constructors Constructor Description ConfigClientWatch(org.springframework.cloud.context.refresh.ContextRefresher refresher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidsetEnvironment(org.springframework.core.env.Environment environment)voidstart()voidwatchConfigServer()
-
-
-
Method Detail
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-
start
@PostConstruct public void start()
-
watchConfigServer
@Scheduled(initialDelayString="${spring.cloud.config.watch.initialDelay:180000}", fixedDelayString="${spring.cloud.config.watch.delay:500}") public void watchConfigServer()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-