Package org.apache.kafka.common.metrics
Interface Stat
-
- All Known Subinterfaces:
CompoundStat
,MeasurableStat
- All Known Implementing Classes:
Avg
,Count
,CumulativeCount
,CumulativeSum
,Frequencies
,Max
,Meter
,Min
,Percentiles
,Rate
,Rate.SampledTotal
,SampledStat
,SimpleRate
,Sum
,TokenBucket
,Total
,Value
,WindowedCount
,WindowedSum
public interface Stat
A Stat is a quantity such as average, max, etc that is computed off the stream of updates to a sensor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
record(MetricConfig config, double value, long timeMs)
Record the given value
-
-
-
Method Detail
-
record
void record(MetricConfig config, double value, long timeMs)
Record the given value- Parameters:
config
- The configuration to use for this metricvalue
- The value to recordtimeMs
- The POSIX time in milliseconds this value occurred
-
-