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