Package org.apache.unomi.metrics
Class MetricAdapter<T>
- java.lang.Object
-
- org.apache.unomi.metrics.MetricAdapter<T>
-
- Type Parameters:
T
- the type to be used as a result type for the method.
public abstract class MetricAdapter<T> extends Object
Utility method to run code inside a timer.
-
-
Constructor Summary
Constructors Constructor Description MetricAdapter(MetricsService metricsService, String timerName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract T
execute(Object... args)
T
runWithTimer(Object... args)
-