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.StopException

    Nested 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    void
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DelayedShutdownHandler

      public DelayedShutdownHandler(ShutdownNotifier shutdownNotifier)
  • Method Details

    • register

      public void register()
    • doStop

      protected void doStop() throws Exception
      Overrides:
      doStop in class org.eclipse.jetty.util.component.AbstractLifeCycle
      Throws:
      Exception