JettyApplicationEngine

class JettyApplicationEngine : JettyApplicationEngineBase

ApplicationEngine implementation for running in a standalone Jetty

Constructors

<init>

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

ApplicationEngine implementation for running in a standalone Jetty

Inherited Properties

configuration

val configuration: Configuration

Application engine configuration specifying engine-specific options such as parallelism level.

server

val server: Server

Jetty server instance being configuring and starting

Functions

start

fun start(wait: Boolean): JettyApplicationEngine

Starts this ApplicationEngine

stop

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

Stops this ApplicationEngine

Inherited Functions

toString

open fun toString(): String

Extension Functions

stopServerOnCancellation

fun ApplicationEngine.stopServerOnCancellation(): CompletableJob

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