Package io.dropwizard.health
Class DelayedShutdownHandler
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
io.dropwizard.health.DelayedShutdownHandler
- All Implemented Interfaces:
org.eclipse.jetty.util.component.LifeCycle
public class DelayedShutdownHandler
extends org.eclipse.jetty.util.component.AbstractLifeCycle
Handler that sets
healthy flag to false and delays shutdown to allow for a load balancer to
determine the instance should no longer receive requests.-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener -
Field Summary
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, STARTED, STARTING, STOPPED, STOPPING -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addEventListener, doStart, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop, toString
-
Constructor Details
-
DelayedShutdownHandler
-
-
Method Details
-
register
public void register() -
doStop
- Overrides:
doStopin classorg.eclipse.jetty.util.component.AbstractLifeCycle- Throws:
Exception
-