Class ComponentStartupCountdownHandler

java.lang.Object
org.wildfly.extension.undertow.deployment.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:
bspyrkos@redhat.com
  • Constructor Details

    • ComponentStartupCountdownHandler

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

    • handleRequest

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