Class 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 Detail

      • DelayedShutdownHandler

        public DelayedShutdownHandler​(ShutdownNotifier shutdownNotifier)
    • Method Detail

      • register

        public void register()
      • doStop

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