public class TimedHandler extends java.lang.Object implements RouteHandler
Timer metric.| Constructor and Description |
|---|
TimedHandler(java.lang.String timerName,
com.codahale.metrics.MetricRegistry metricRegistry,
RouteHandler routeHandler) |
TimedHandler(java.lang.String timerName,
RouteHandler routeHandler)
This constructor uses
SharedMetricRegistries.getDefault() as metric registry. |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(RouteContext routeContext) |
public TimedHandler(java.lang.String timerName,
RouteHandler routeHandler)
SharedMetricRegistries.getDefault() as metric registry.
The default (global) metric registry is set in MetricsInitializer.init(Application).public TimedHandler(java.lang.String timerName,
com.codahale.metrics.MetricRegistry metricRegistry,
RouteHandler routeHandler)
public void handle(RouteContext routeContext)
handle in interface RouteHandlerCopyright © 2023. All rights reserved.