TomcatApplicationEngine
class TomcatApplicationEngine : BaseApplicationEngine
Tomcat application engine that runs it in embedded mode
Types
class Configuration : Configuration Tomcat engine specific configuration builder |
Constructors
TomcatApplicationEngine( Tomcat application engine that runs it in embedded mode |
Inherited Properties
val environment: ApplicationEngineEnvironment instance of ApplicationEngineEnvironment for this engine |
|
val pipeline: EnginePipeline pipeline to use with this engine |
Functions
fun start(wait: Boolean): TomcatApplicationEngine Starts this ApplicationEngine |
|
Stops this ApplicationEngine |
Extension Functions
fun ApplicationEngine.addShutdownHook(stop: () -> Unit): Unit 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. |
|
fun ApplicationEngine.stop( Stops this ApplicationEngine |
|
fun ApplicationEngine.stopServerOnCancellation(): CompletableJob Stop server on job cancellation. The returned deferred need to be completed or cancelled. |