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 Summary
ConstructorsConstructorDescriptionComponentStartupCountdownHandler(io.undertow.server.HttpHandler handler, StartupCountdown countdown) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleRequest(io.undertow.server.HttpServerExchange exchange)
-
Constructor Details
-
ComponentStartupCountdownHandler
public ComponentStartupCountdownHandler(io.undertow.server.HttpHandler handler, StartupCountdown countdown)
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Throws:
Exception
-