Class 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 Detail

      • ConfigClientWatch

        public ConfigClientWatch​(org.springframework.cloud.context.refresh.ContextRefresher refresher)
    • Method Detail

      • setEnvironment

        public void setEnvironment​(org.springframework.core.env.Environment environment)
        Specified by:
        setEnvironment in interface org.springframework.context.EnvironmentAware
      • watchConfigServer

        @Scheduled(initialDelayString="${spring.cloud.config.watch.initialDelay:180000}",
                   fixedDelayString="${spring.cloud.config.watch.delay:500}")
        public void watchConfigServer()