Package org.infinispan.commons.stat
Class GaugeMetricInfo<T>
java.lang.Object
org.infinispan.commons.stat.GaugeMetricInfo<T>
- All Implemented Interfaces:
MetricInfo
Represents a gauge metric.
A gauge tracks a specific value, like a queue size.
- Since:
- 15.0
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
GaugeMetricInfo
-
-
Method Details
-
getGauge
- Returns:
- The
Supplier
to be invoked to fetch the value frominstance
.
-
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
-