public class ImmediateGracefulShutdown extends Object implements GracefulShutdown
GracefulShutdown that returns immediately with no grace period.| Constructor and Description |
|---|
ImmediateGracefulShutdown() |
| 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. |
public boolean shutDownGracefully()
GracefulShutdownWebServer, returning true if activity ceased during
the grace period, otherwise false.shutDownGracefully in interface GracefulShutdowntrue if activity ceased during the grace period, otherwise
falsepublic boolean isShuttingDown()
GracefulShutdownisShuttingDown in interface GracefulShutdowntrue is graceful shutdown is in progress, otherwise false.