Configuration

class Configuration : BaseApplicationEngine.Configuration

Configuration for the NettyApplicationEngine

Constructors

Link copied to clipboard
fun Configuration()

Properties

Link copied to clipboard
var callGroupSize: Int
Link copied to clipboard
var configureBootstrap: ServerBootstrap.() -> Unit

User-provided function to configure Netty's ServerBootstrap

Link copied to clipboard
var connectionGroupSize: Int
Link copied to clipboard
var httpServerCodec: () -> HttpServerCodec

User-provided function to configure Netty's HttpServerCodec

Link copied to clipboard
val parallelism: Int
Link copied to clipboard
var requestQueueLimit: Int = 16

Size of the queue to store ApplicationCall instances that cannot be immediately processed

Link copied to clipboard
var requestReadTimeoutSeconds: Int = 0

Timeout in seconds for reading requests from client, "0" is infinite.

Link copied to clipboard
var responseWriteTimeoutSeconds: Int = 10

Timeout in seconds for sending responses to client

Link copied to clipboard
var runningLimit: Int = 10

Number of concurrently running requests from the same http pipeline

Link copied to clipboard
var shareWorkGroup: Boolean = false

Do not create separate call event group and reuse worker group for processing calls

Link copied to clipboard
var tcpKeepAlive: Boolean = false

If set to true, enables TCP keep alive for connections so all dead client connections will be discarded. The timeout period is configured by the system so configure your host accordingly.

Link copied to clipboard
var workerGroupSize: Int