Package org.infinispan.commons.stat
Class CounterMetricInfo<T>
java.lang.Object
org.infinispan.commons.stat.CounterMetricInfo<T>
- All Implemented Interfaces:
MetricInfo
Represents a counter. It sets
CounterTracker
into the target instance.
A counter tracks a monotonically increasing values and never resets to a lesser value.
- Since:
- 15.0
-
Constructor Summary
ConstructorDescriptionCounterMetricInfo
(String name, String description, Map<String, String> map, BiConsumer<T, CounterTracker> setter) -
Method Summary
-
Constructor Details
-
CounterMetricInfo
public CounterMetricInfo(String name, String description, Map<String, String> map, BiConsumer<T, CounterTracker> 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
-