WebServerGracefulShutdownLifecycle

SmartLifecycle to trigger WebServer graceful shutdown.

Author

Andy Wilkinson

Since

2.5.0

Constructors

Link copied to clipboard
constructor(webServer: WebServer)
Creates a new WebServerGracefulShutdownLifecycle that will gracefully shut down the given webServer.

Properties

Link copied to clipboard
val DEFAULT_PHASE: Int = 2147483647
Link copied to clipboard
val SMART_LIFECYCLE_PHASE: Int = 2147482623
SmartLifecycle phase in which graceful shutdown of the web server is performed.

Functions

Link copied to clipboard
open fun getPhase(): Int
Link copied to clipboard
Link copied to clipboard
open fun isRunning(): Boolean
Link copied to clipboard
open fun start()
Link copied to clipboard
open fun stop()
open fun stop(callback: Runnable)