public interface MetricsTimerFactory extends MetricsFactory
| Modifier and Type | Method and Description |
|---|---|
MetricsTimer |
createTimer(Class<?> origin,
String name,
TimeUnit duration,
TimeUnit rate)
Create a MetricsTimer instance.
|
registeredMetricsTimer createTimer(Class<?> origin, String name, TimeUnit duration, TimeUnit rate)
origin - The class that instantiate the metricname - A human readable, short name of the metric.duration - the scale unit for this timer's duration metricsrate - the scale unit for this timer's rate metrics