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
ConstructorsConstructorDescriptionConfigClientWatch(org.springframework.cloud.context.refresh.ContextRefresher refresher) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidsetEnvironment(org.springframework.core.env.Environment environment) voidstart()void
-
Constructor Details
-
ConfigClientWatch
public ConfigClientWatch(org.springframework.cloud.context.refresh.ContextRefresher refresher)
-
-
Method Details
-
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
-