NettyApplicationEngine

class NettyApplicationEngine : BaseApplicationEngine

ApplicationEngine implementation for running in a standalone Netty

Types

Configuration

class Configuration : Configuration

Configuration for the NettyApplicationEngine

Constructors

<init>

NettyApplicationEngine(
    environment: ApplicationEngineEnvironment,
    configure: Configuration.() -> Unit = {})

ApplicationEngine implementation for running in a standalone Netty

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): NettyApplicationEngine

Starts this ApplicationEngine

stop

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

Stops this ApplicationEngine

toString

fun toString(): String

Extension Functions

stopServerOnCancellation

fun ApplicationEngine.stopServerOnCancellation(): CompletableJob

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