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 setshealthy
flag tofalse
and delays shutdown to allow for a load balancer to determine the instance should no longer receive requests.
-
-
Constructor Summary
Constructors Constructor Description DelayedShutdownHandler(ShutdownNotifier shutdownNotifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doStop()
void
register()
-
-
-
Constructor Detail
-
DelayedShutdownHandler
public DelayedShutdownHandler(ShutdownNotifier shutdownNotifier)
-
-