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 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 interface org.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 interface AutoCloseable
      Specified by:
      close in interface Closeable