Class ConsulCatalogWatch

java.lang.Object
org.springframework.cloud.consul.discovery.ConsulCatalogWatch
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

public class ConsulCatalogWatch extends Object implements org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.SmartLifecycle
Author:
Spencer Gibb
  • Constructor Details

    • ConsulCatalogWatch

      public ConsulCatalogWatch(ConsulDiscoveryProperties properties, com.ecwid.consul.v1.ConsulClient consul)
    • ConsulCatalogWatch

      public ConsulCatalogWatch(ConsulDiscoveryProperties properties, com.ecwid.consul.v1.ConsulClient consul, org.springframework.scheduling.TaskScheduler taskScheduler)
  • Method Details

    • setApplicationEventPublisher

      public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
      Specified by:
      setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAware
    • isAutoStartup

      public boolean isAutoStartup()
      Specified by:
      isAutoStartup in interface org.springframework.context.SmartLifecycle
    • stop

      public void stop(Runnable callback)
      Specified by:
      stop in interface org.springframework.context.SmartLifecycle
    • start

      public void start()
      Specified by:
      start in interface org.springframework.context.Lifecycle
    • stop

      public void stop()
      Specified by:
      stop in interface org.springframework.context.Lifecycle
    • isRunning

      public boolean isRunning()
      Specified by:
      isRunning in interface org.springframework.context.Lifecycle
    • getPhase

      public int getPhase()
      Specified by:
      getPhase in interface org.springframework.context.Phased
      Specified by:
      getPhase in interface org.springframework.context.SmartLifecycle
    • catalogServicesWatch

      public void catalogServicesWatch()