Package org.apache.kafka.common.metrics
Interface MetricValueProvider<T>
-
- All Known Subinterfaces:
Gauge<T>,Measurable,MeasurableStat
- All Known Implementing Classes:
Avg,Count,CumulativeCount,CumulativeSum,Frequencies,Max,Min,Percentiles,Rate,Rate.SampledTotal,SampledStat,SimpleRate,Sum,TokenBucket,Total,Value,WindowedCount,WindowedSum
public interface MetricValueProvider<T>Super-interface forMeasurableorGaugethat provides metric values.In the future for Java8 and above,
Gauge.value(MetricConfig, long)will be moved to this interface with a default implementation inMeasurablethat returnsMeasurable.measure(MetricConfig, long).