Package org.apache.kafka.common.metrics
Interface Measurable
- All Superinterfaces:
MetricValueProvider<Double>
- All Known Subinterfaces:
MeasurableStat
- All Known Implementing Classes:
Avg
,CumulativeCount
,CumulativeSum
,Frequencies
,Max
,Min
,Percentiles
,Rate
,SampledStat
,SimpleRate
,TokenBucket
,Value
,WindowedCount
,WindowedSum
public interface Measurable extends MetricValueProvider<Double>
A measurable quantity that can be registered as a metric
-
Method Summary
Modifier and Type Method Description double
measure(MetricConfig config, long now)
Measure this quantity and return the result as a double
-
Method Details
-
measure
Measure this quantity and return the result as a double- Parameters:
config
- The configuration for this metricnow
- The POSIX time in milliseconds the measurement is being taken- Returns:
- The measured value
-