shutDownGracefully

Initiates a graceful shutdown of the Undertow web server. Handling of new requests is prevented and the given callback is invoked at the end of the attempt. The attempt can be explicitly ended by invoking stop.

Once shutdown has been initiated Undertow will return an HTTP 503 response for any new or existing connections.