Package org.infinispan.commons.stat
Class TimeGaugeMetricInfo<T>
java.lang.Object
org.infinispan.commons.stat.TimeGaugeMetricInfo<T>
- All Implemented Interfaces:
MetricInfo
Same as
GaugeMetricInfo
but the tracked value is a time or duration.- Since:
- 15.0
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TimeGaugeMetricInfo
-
-
Method Details
-
getGauge
- Returns:
- The
Supplier
to invoke to return the current value of the metric.
-
getTimeUnit
- Returns:
- The
TimeUnit
of the tracked value.
-
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
-