HttpHandlerpublic class MetricsHandler extends Object implements HttpHandler
| Modifier and Type | Class | Description |
|---|---|---|
static class |
MetricsHandler.MetricResult |
| Modifier and Type | Field | Description |
|---|---|---|
static HandlerWrapper |
WRAPPER |
| Constructor | Description |
|---|---|
MetricsHandler(HttpHandler next) |
| Modifier and Type | Method | Description |
|---|---|---|
MetricsHandler.MetricResult |
getMetrics() |
|
void |
handleRequest(HttpServerExchange exchange) |
Handle the request.
|
void |
reset() |
public static final HandlerWrapper WRAPPER
public MetricsHandler(HttpHandler next)
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandlerhandleRequest in interface HttpHandlerexchange - the HTTP request/response exchangeExceptionpublic void reset()
public MetricsHandler.MetricResult getMetrics()
Copyright © 2018. All rights reserved.