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 forMeasurable
orGauge
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 inMeasurable
that returnsMeasurable.measure(MetricConfig, long)
.