scheduleShutdown

fun scheduleShutdown(delay: Long = config.lifecycleSettings.timeouts.inactiveGracePeriod): Result<Server>

Schedules a shutdown of the server

Uses the Velocity event system to register a future shutdown task.

Return

a result containing the server or an error

Parameters

delay

the delay in seconds before the server is shutdown