Class RequestCountHttpHandler
- java.lang.Object
-
- org.wildfly.mod_cluster.undertow.metric.RequestCountHttpHandler
-
- All Implemented Interfaces:
io.undertow.server.HttpHandler
public class RequestCountHttpHandler extends Object implements io.undertow.server.HttpHandler
HttpHandlerthat counts number of incoming requests.- Since:
- 8.0
- Author:
- Radoslav Husar
-
-
Constructor Summary
Constructors Constructor Description RequestCountHttpHandler(io.undertow.server.HttpHandler handler)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static longgetRequestCount()voidhandleRequest(io.undertow.server.HttpServerExchange httpServerExchange)
-
-
-
Method Detail
-
handleRequest
public void handleRequest(io.undertow.server.HttpServerExchange httpServerExchange) throws Exception- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Throws:
Exception
-
getRequestCount
public static long getRequestCount()
- Returns:
- long value of all incoming requests on all connectors
-
-