public final class WebServerGracefulShutdownLifecycle extends Object implements SmartLifecycle
SmartLifecycle to trigger WebServer graceful shutdown.| Modifier and Type | Field and Description |
|---|---|
static int |
SMART_LIFECYCLE_PHASE
SmartLifecycle phase in which graceful shutdown
of the web server is performed. |
DEFAULT_PHASE| Constructor and Description |
|---|
WebServerGracefulShutdownLifecycle(WebServer webServer)
Creates a new
WebServerGracefulShutdownLifecycle that will gracefully shut
down the given webServer. |
| Modifier and Type | Method and Description |
|---|---|
int |
getPhase() |
boolean |
isRunning() |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAutoStartuppublic static final int SMART_LIFECYCLE_PHASE
SmartLifecycle phase in which graceful shutdown
of the web server is performed.public WebServerGracefulShutdownLifecycle(WebServer webServer)
WebServerGracefulShutdownLifecycle that will gracefully shut
down the given webServer.webServer - web server to shut down gracefullypublic void stop(Runnable callback)
stop in interface SmartLifecyclepublic int getPhase()
getPhase in interface PhasedgetPhase in interface SmartLifecycle