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
A non-sampled version of 
WindowedCount maintained over all time.
 This is a special kind of CumulativeSum that always records 1 instead of the provided value.
 In other words, it counts the number of
 record(MetricConfig, double, long) invocations,
 instead of summing the recorded values.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidrecord(MetricConfig config, double value, long timeMs) Record the given valueMethods inherited from class org.apache.kafka.common.metrics.stats.CumulativeSummeasure, toString
- 
Constructor Details- 
CumulativeCountpublic CumulativeCount()
 
- 
- 
Method Details- 
recordDescription copied from interface:StatRecord the given value- Specified by:
- recordin interface- Stat
- Overrides:
- recordin class- CumulativeSum
- Parameters:
- config- The configuration to use for this metric
- value- The value to record
- timeMs- The POSIX time in milliseconds this value occurred
 
 
-