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()
GracefulShutdown
WebServer
, returning true
if activity ceased during
the grace period, otherwise false
.shutDownGracefully
in interface GracefulShutdown
true
if activity ceased during the grace period, otherwise
false
public boolean isShuttingDown()
GracefulShutdown
isShuttingDown
in interface GracefulShutdown
true
is graceful shutdown is in progress, otherwise false
.