BaseApplicationEngine

abstract class BaseApplicationEngine(environment: ApplicationEngineEnvironment, pipeline: EnginePipeline) : ApplicationEngine

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

Types

Link copied to clipboard
open class Configuration : ApplicationEngine.Configuration

Configuration for the BaseApplicationEngine

Functions

Link copied to clipboard
abstract fun start(wait: Boolean = false): ApplicationEngine

Starts this ApplicationEngine

Link copied to clipboard
abstract fun stop(gracePeriodMillis: Long, timeoutMillis: Long)
open fun stop(gracePeriod: Long, timeout: Long, timeUnit: TimeUnit)

Properties

Link copied to clipboard
open val application: Application

Currently running application instance

Link copied to clipboard
override val environment: ApplicationEngineEnvironment
Link copied to clipboard
val pipeline: EnginePipeline