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 |
|---|---|
Object | getWakeLock()Get the lock object for wake/sleep coordination with the shutdown detector. |
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 Object getWakeLock()
public void stop()
public void wakeUp()