Class ConsulServiceListener

java.lang.Object
org.kiwiproject.dropwizard.consul.core.ConsulServiceListener
All Implemented Interfaces:
io.dropwizard.lifecycle.ServerLifecycleListener, EventListener

public class ConsulServiceListener extends Object implements io.dropwizard.lifecycle.ServerLifecycleListener
  • Constructor Details

    • ConsulServiceListener

      public ConsulServiceListener(ConsulAdvertiser advertiser, Optional<io.dropwizard.util.Duration> retryInterval, Optional<ScheduledExecutorService> scheduler)
      Constructor
      Parameters:
      advertiser - Consul advertiser
      retryInterval - When specified, will retry if service registration fails
      scheduler - When specified, will retry if service registration fails
  • Method Details

    • serverStarted

      public void serverStarted(org.eclipse.jetty.server.Server server)
      Specified by:
      serverStarted in interface io.dropwizard.lifecycle.ServerLifecycleListener