Package org.apache.kafka.common.metrics
Interface Measurable
-
- All Superinterfaces:
MetricValueProvider<Double>
- All Known Subinterfaces:
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 Measurable extends MetricValueProvider<Double>
A measurable quantity that can be registered as a metric
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
measure(MetricConfig config, long now)
Measure this quantity and return the result as a double
-
-
-
Method Detail
-
measure
double measure(MetricConfig config, long now)
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
-
-