Class CumulativeCount
- java.lang.Object
-
- org.apache.kafka.common.metrics.stats.CumulativeSum
-
- org.apache.kafka.common.metrics.stats.CumulativeCount
-
- All Implemented Interfaces:
Measurable
,MeasurableStat
,MetricValueProvider<Double>
,Stat
public class CumulativeCount extends CumulativeSum
A non-sampled version ofWindowedCount
maintained over all time. This is a special kind ofCumulativeSum
that always records1
instead of the provided value. In other words, it counts the number ofrecord(MetricConfig, double, long)
invocations, instead of summing the recorded values.
-
-
Constructor Summary
Constructors Constructor Description CumulativeCount()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
record(MetricConfig config, double value, long timeMs)
Record the given value-
Methods inherited from class org.apache.kafka.common.metrics.stats.CumulativeSum
measure, toString
-
-
-
-
Method Detail
-
record
public void record(MetricConfig config, double value, long timeMs)
Description copied from interface:Stat
Record the given value- Specified by:
record
in interfaceStat
- Overrides:
record
in classCumulativeSum
- Parameters:
config
- The configuration to use for this metricvalue
- The value to recordtimeMs
- The POSIX time in milliseconds this value occurred
-
-