public interface GracefulShutdown
WebServer.| Modifier and Type | Field and Description |
|---|---|
static GracefulShutdown |
IMMEDIATE
A
GracefulShutdown that returns immediately with no grace period. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isShuttingDown()
Returns whether the handler is in the process of gracefully shutting down the web
server.
|
boolean |
shutDownGracefully()
Shuts down the
WebServer, returning true if activity ceased during
the grace period, otherwise false. |
static final GracefulShutdown IMMEDIATE
GracefulShutdown that returns immediately with no grace period.boolean shutDownGracefully()
WebServer, returning true if activity ceased during
the grace period, otherwise false.true if activity ceased during the grace period, otherwise
falseboolean isShuttingDown()
true is graceful shutdown is in progress, otherwise false.