Class RunningRequestsHttpHandler
- java.lang.Object
-
- org.wildfly.mod_cluster.undertow.metric.RunningRequestsHttpHandler
-
- All Implemented Interfaces:
io.undertow.server.HttpHandler
public class RunningRequestsHttpHandler extends Object implements io.undertow.server.HttpHandler
HttpHandlerimplementation that counts number of active / running requests to replace the busyness metric.- Since:
- 8.0
- Author:
- Radoslav Husar
-
-
Constructor Summary
Constructors Constructor Description RunningRequestsHttpHandler(io.undertow.server.HttpHandler handler)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intgetRunningRequestCount()voidhandleRequest(io.undertow.server.HttpServerExchange exchange)Increments the counter and registers a listener to decrement the counter upon exchange complete event.
-
-
-
Method Detail
-
handleRequest
public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws ExceptionIncrements 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()
-
-