Package org.infinispan.commons.stat
Class FunctionTimerMetricInfo<T>
java.lang.Object
org.infinispan.commons.stat.FunctionTimerMetricInfo<T>
- All Implemented Interfaces:
MetricInfo
Represents a duration metric. It sets
TimerTracker
into the target instance.
A distribution summary tracks a duration.
- Since:
- 15.0
-
Constructor Summary
ConstructorDescriptionFunctionTimerMetricInfo
(String name, String description, Map<String, String> map, BiConsumer<T, TimerTracker> setter, TimeUnit timeUnit) -
Method Summary
-
Constructor Details
-
FunctionTimerMetricInfo
public FunctionTimerMetricInfo(String name, String description, Map<String, String> map, BiConsumer<T, TimerTracker> setter, TimeUnit timeUnit)
-
-
Method Details
-
getTimeUnit
- Returns:
- The
TimeUnit
of the time tracked by the event.
-
toString
-
accept
-
getName
- Specified by:
getName
in interfaceMetricInfo
- Returns:
- The metrics name.
-
getDescription
- Specified by:
getDescription
in interfaceMetricInfo
- Returns:
- The metrics description/help message.
-
getTags
- Specified by:
getTags
in interfaceMetricInfo
- Returns:
- The tags to be used. Must be non-null.
-