stop

fun stop(gracePeriodMillis: Long = 500, timeoutMillis: Long = 1500)

Stops the Netty application engine with the specified grace period and timeout.

Parameters

gracePeriodMillis

The time in milliseconds to wait for ongoing requests to complete before forcefully stopping. Defaults to 500 milliseconds.

timeoutMillis

The maximum time in milliseconds to wait for the engine to stop. Defaults to 1500 milliseconds.