ApplicationEngine
Engine which runs an application
Types
Link copied to clipboard
Configuration for the ApplicationEngine
Functions
Properties
Inheritors
Extensions
Link copied to clipboard
Adds automatic JVM shutdown hooks management. Should be used before starting the engine. Once JVM termination noticed, stop block will be executed. Please note that a shutdown hook only registered when the application is running. If the application is already stopped then there will be no hook and no stop function invocation possible. So stop block will be called once or never.
Link copied to clipboard
fun ApplicationEngine.stop(gracePeriod: Long, timeout: Long, timeUnit: TimeUnit)
Content copied to clipboard
Stops this ApplicationEngine
Link copied to clipboard
Stop server on job cancellation. The returned deferred need to be completed or cancelled.