| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final HttpHandler | |
| private volatile MetricsHandler. | |
| public static final HandlerWrapper |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public MetricsHandler. | |
| public void | handleRequest(HttpServerExchange
the HTTP request/response exchange exchange)Implements io. Handle the request. |
| public void |
| next | back to summary |
|---|---|
| private final HttpHandler next | |
| totalResult | back to summary |
|---|---|
| private volatile MetricsHandler. | |
| WRAPPER | back to summary |
|---|---|
| public static final HandlerWrapper WRAPPER | |
| MetricsHandler | back to summary |
|---|---|
| public MetricsHandler(HttpHandler next) | |
| getMetrics | back to summary |
|---|---|
| public MetricsHandler. | |
| handleRequest | back to summary |
|---|---|
| public void handleRequest(HttpServerExchange exchange) throws Exception Implements io. Doc from io. Handle the request.
| |
| reset | back to summary |
|---|---|
| public void reset() | |
| Modifier and Type | Field and Description |
|---|---|
| private static final AtomicLongFieldUpdater | |
| private static final AtomicLongFieldUpdater | |
| private volatile int | |
| private static final AtomicIntegerFieldUpdater | |
| private final Date | |
| private volatile int | |
| private static final AtomicIntegerFieldUpdater | |
| private volatile long | |
| private volatile long | |
| private volatile long | |
| private static final AtomicLongFieldUpdater |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public Date | |
| public int | |
| public long | |
| public long | |
| public long | |
| pack-priv void |
| errorsUpdater | back to summary |
|---|---|
| private static final AtomicLongFieldUpdater<MetricsHandler. | |
| invocationsUpdater | back to summary |
|---|---|
| private static final AtomicLongFieldUpdater<MetricsHandler. | |
| maxRequestTime | back to summary |
|---|---|
| private volatile int maxRequestTime | |
| maxRequestTimeUpdater | back to summary |
|---|---|
| private static final AtomicIntegerFieldUpdater<MetricsHandler. | |
| metricsStartDate | back to summary |
|---|---|
| private final Date metricsStartDate | |
| minRequestTime | back to summary |
|---|---|
| private volatile int minRequestTime | |
| minRequestTimeUpdater | back to summary |
|---|---|
| private static final AtomicIntegerFieldUpdater<MetricsHandler. | |
| totalErrors | back to summary |
|---|---|
| private volatile long totalErrors | |
| totalRequests | back to summary |
|---|---|
| private volatile long totalRequests | |
| totalRequestTime | back to summary |
|---|---|
| private volatile long totalRequestTime | |
| totalRequestTimeUpdater | back to summary |
|---|---|
| private static final AtomicLongFieldUpdater<MetricsHandler. | |
| MetricResult | back to summary |
|---|---|
| public MetricResult(Date metricsStartDate) | |
| MetricResult | back to summary |
|---|---|
| public MetricResult(MetricsHandler. | |
| getMaxRequestTime | back to summary |
|---|---|
| public int getMaxRequestTime() | |
| getMetricsStartDate | back to summary |
|---|---|
| public Date getMetricsStartDate() | |
| getMinRequestTime | back to summary |
|---|---|
| public int getMinRequestTime() | |
| getTotalErrors | back to summary |
|---|---|
| public long getTotalErrors() | |
| getTotalRequests | back to summary |
|---|---|
| public long getTotalRequests() | |
| getTotalRequestTime | back to summary |
|---|---|
| public long getTotalRequestTime() | |
| update | back to summary |
|---|---|
| pack-priv void update(final int requestTime, int statusCode) | |