CIOApplicationEngine

class CIOApplicationEngine : BaseApplicationEngine

Engine that based on CIO backend

Types

Configuration

class Configuration : Configuration

CIO-based server configuration

Constructors

<init>

CIOApplicationEngine(
    environment: ApplicationEngineEnvironment,
    configure: Configuration.() -> Unit)

Engine that based on CIO backend

Inherited Properties

environment

instance of ApplicationEngineEnvironment for this engine

pipeline

val pipeline: EnginePipeline

pipeline to use with this engine

Functions

start

fun start(wait: Boolean): ApplicationEngine

Starts this ApplicationEngine

stop

fun stop(
    gracePeriod: Long,
    timeout: Long,
    timeUnit: TimeUnit
): Unit

Stops this ApplicationEngine

Extension Functions

stopServerOnCancellation

fun ApplicationEngine.stopServerOnCancellation(): CompletableJob

Stop server on job cancellation. The returned deferred need to be completed or cancelled.