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
HttpHandler that counts number of incoming requests.
Since:
8.0
Author:
Radoslav Husar
  • 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:
      handleRequest in interface io.undertow.server.HttpHandler
      Throws:
      Exception
    • getRequestCount

      public static long getRequestCount()
      Returns:
      long value of all incoming requests on all connectors