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
ConstructorDescriptionConfigClientWatch
(org.springframework.cloud.context.refresh.ContextRefresher refresher) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
setEnvironment
(org.springframework.core.env.Environment environment) void
start()
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:
setEnvironment
in 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-