Class ComponentStartupCountdownHandler

  • All Implemented Interfaces:
    io.undertow.server.HttpHandler

    public class ComponentStartupCountdownHandler
    extends Object
    implements io.undertow.server.HttpHandler
    Queue up requests until all startup components are initialized successfully. If any of the components failed to startup, all queued up and any subsequent requests are terminated with a 500 error code. Based on io.undertow.server.handlers.RequestLimitingHandler
    Author:
    [email protected]
    • Constructor Detail

      • ComponentStartupCountdownHandler

        public ComponentStartupCountdownHandler​(io.undertow.server.HttpHandler handler,
                                                StartupCountdown countdown)
    • Method Detail

      • handleRequest

        public void handleRequest​(io.undertow.server.HttpServerExchange exchange)
                           throws Exception
        Specified by:
        handleRequest in interface io.undertow.server.HttpHandler
        Throws:
        Exception