Package org.infinispan.commons.stat
Class TimerMetricInfo<T>
java.lang.Object
org.infinispan.commons.stat.TimerMetricInfo<T>
- All Implemented Interfaces:
MetricInfo
Represents a duration event (histogram). It sets
TimerTracker
into the target instance.- Since:
- 15.0
-
Constructor Summary
ConstructorDescriptionTimerMetricInfo
(String name, String description, Map<String, String> map, BiConsumer<T, TimerTracker> setter) -
Method Summary
-
Constructor Details
-
TimerMetricInfo
public TimerMetricInfo(String name, String description, Map<String, String> map, BiConsumer<T, TimerTracker> setter)
-
-
Method Details
-
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.
-
toString
-