public class MetricsHandler extends Object implements WebServiceHandler
| Constructor and Description |
|---|
MetricsHandler(MetricRegistry metricRegistry,
Optional<Duration> cacheExpiration)
Constructs a new handler.
|
| Modifier and Type | Method and Description |
|---|---|
Eventual<HttpResponse> |
handle(HttpRequest request,
HttpInterceptor.Context context) |
public MetricsHandler(MetricRegistry metricRegistry, Optional<Duration> cacheExpiration)
metricRegistry - metrics registrycacheExpiration - duration for which generated page content should be cachedpublic Eventual<HttpResponse> handle(HttpRequest request, HttpInterceptor.Context context)
handle in interface WebServiceHandlerCopyright © 2013–2020 Hotels.com. All rights reserved.