Class CumulativeSum
java.lang.Object
org.apache.kafka.common.metrics.stats.CumulativeSum
- All Implemented Interfaces:
- Measurable,- MeasurableStat,- MetricValueProvider<Double>,- Stat
- Direct Known Subclasses:
- CumulativeCount
An non-sampled cumulative total maintained over all time.
 This is a non-sampled version of 
WindowedSum.
 See also CumulativeCount if you just want to increment the value by 1 on each recording.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondoublemeasure(MetricConfig config, long now) Measure this quantity and return the result as a doublevoidrecord(MetricConfig config, double value, long now) Record the given valuetoString()
- 
Constructor Details- 
CumulativeSumpublic CumulativeSum()
- 
CumulativeSumpublic CumulativeSum(double value) 
 
- 
- 
Method Details- 
recordDescription copied from interface:StatRecord the given value
- 
measureDescription copied from interface:MeasurableMeasure this quantity and return the result as a double- Specified by:
- measurein interface- Measurable
- Parameters:
- config- The configuration for this metric
- now- The POSIX time in milliseconds the measurement is being taken
- Returns:
- The measured value
 
- 
toString
 
-