public class RunningRequestsHttpHandler extends Object implements io.undertow.server.HttpHandler
HttpHandler
implementation that counts number of active / running requests to replace the busyness
metric.Constructor and Description |
---|
RunningRequestsHttpHandler(io.undertow.server.HttpHandler handler) |
Modifier and Type | Method and Description |
---|---|
static int |
getRunningRequestCount() |
void |
handleRequest(io.undertow.server.HttpServerExchange exchange)
Increments the counter and registers a listener to decrement the counter upon exchange complete event.
|
public RunningRequestsHttpHandler(io.undertow.server.HttpHandler handler)
public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception
handleRequest
in interface io.undertow.server.HttpHandler
exchange
- Exception
public static int getRunningRequestCount()
Copyright © 2017 JBoss by Red Hat. All rights reserved.