public class GracefulShutdown extends Object implements Runnable
| Constructor and Description |
|---|
GracefulShutdown(RouterContext ctx)
Create a new graceful shutdown handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
void |
stop()
Stop the shutdown thread gracefully.
|
void |
wakeUp()
Wake up the shutdown thread when a relevant state change occurs.
|
public GracefulShutdown(RouterContext ctx)
ctx - the router context for accessing router state and servicespublic void stop()
public void wakeUp()