Class RequestCountHttpHandler
java.lang.Object
org.wildfly.mod_cluster.undertow.metric.RequestCountHttpHandler
- All Implemented Interfaces:
io.undertow.server.HttpHandler
HttpHandler that counts number of incoming requests.- Since:
- 8.0
- Author:
- Radoslav Husar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longvoidhandleRequest(io.undertow.server.HttpServerExchange httpServerExchange)
-
Constructor Details
-
RequestCountHttpHandler
public RequestCountHttpHandler(io.undertow.server.HttpHandler handler)
-
-
Method Details
-
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
-