BaseApplicationEngine
abstract class BaseApplicationEngine(environment: ApplicationEngineEnvironment, pipeline: EnginePipeline) : ApplicationEngine
Content copied to clipboard
Base class for implementing ApplicationEngine
It creates default engine pipeline, provides application property and installs default transformations on respond and receive
Parameters
environment
instance of ApplicationEngineEnvironment for this engine
pipeline
pipeline to use with this engine
Constructors
Link copied to clipboard
fun BaseApplicationEngine(environment: ApplicationEngineEnvironment, pipeline: EnginePipeline = defaultEnginePipeline(environment))
Content copied to clipboard
Types
Link copied to clipboard
Configuration for the BaseApplicationEngine
Functions
Link copied to clipboard
open suspend override fun resolvedConnectors(): List<EngineConnectorConfig>
Content copied to clipboard
Local addresses for application connectors. If environment's connectors was configured to use port=0, you can use this function to get an actual port for these connectors. Available after a server is started.
Link copied to clipboard
Starts this ApplicationEngine.
Link copied to clipboard
abstract fun stop(gracePeriodMillis: Long = 500, timeoutMillis: Long = 500)
Content copied to clipboard
Stops this ApplicationEngine.