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 Summary
ConstructorsConstructorDescriptionConsulServiceListener(ConsulAdvertiser advertiser, Optional<io.dropwizard.util.Duration> retryInterval, Optional<ScheduledExecutorService> scheduler) Constructor -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.dropwizard.lifecycle.ServerLifecycleListener
getAdminPort, getLocalPort, getPortDescriptorList
-
Constructor Details
-
ConsulServiceListener
public ConsulServiceListener(ConsulAdvertiser advertiser, Optional<io.dropwizard.util.Duration> retryInterval, Optional<ScheduledExecutorService> scheduler) Constructor- Parameters:
advertiser- Consul advertiserretryInterval- When specified, will retry if service registration failsscheduler- When specified, will retry if service registration fails
-
-
Method Details
-
serverStarted
public void serverStarted(org.eclipse.jetty.server.Server server) - Specified by:
serverStartedin interfaceio.dropwizard.lifecycle.ServerLifecycleListener
-