public class WindowedSum extends SampledStat
SampledStat
that maintains the sum of what it has seen.
This is a sampled version of CumulativeSum
.
See also WindowedCount
if you want to increment the value by 1 on each recording.Constructor and Description |
---|
WindowedSum() |
Modifier and Type | Method and Description |
---|---|
double |
combine(List<org.apache.kafka.common.metrics.stats.SampledStat.Sample> samples,
MetricConfig config,
long now) |
public double combine(List<org.apache.kafka.common.metrics.stats.SampledStat.Sample> samples, MetricConfig config, long now)
combine
in class SampledStat