shutdownTimeout property

Duration shutdownTimeout
final

On SIGTERM or SIGINT the server stops taking new connections, and waits this long for open requests to finish. Then it closes the rest, runs shutdown() of every provider and exits. Default 8 seconds. Keep it below the kill timeout of your platform (docker stop: 10 seconds).

Implementation

final Duration shutdownTimeout;