Class RunningRequestsHttpHandler
java.lang.Object
org.wildfly.mod_cluster.undertow.metric.RunningRequestsHttpHandler
- All Implemented Interfaces:
io.undertow.server.HttpHandler
HttpHandler implementation that counts number of active / running requests to replace the busyness
metric.- Since:
- 8.0
- Author:
- Radoslav Husar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intvoidhandleRequest(io.undertow.server.HttpServerExchange exchange) Increments the counter and registers a listener to decrement the counter upon exchange complete event.
-
Constructor Details
-
RunningRequestsHttpHandler
public RunningRequestsHttpHandler(io.undertow.server.HttpHandler handler)
-
-
Method Details
-
handleRequest
Increments the counter and registers a listener to decrement the counter upon exchange complete event.- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Throws:
Exception
-
getRunningRequestCount
public static int getRunningRequestCount()
-