Class WindowedSum
java.lang.Object
org.apache.kafka.common.metrics.stats.SampledStat
org.apache.kafka.common.metrics.stats.WindowedSum
- All Implemented Interfaces:
Measurable
,MeasurableStat
,MetricValueProvider<Double>
,Stat
- Direct Known Subclasses:
WindowedCount
A
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.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.kafka.common.metrics.stats.SampledStat
SampledStat.Sample
-
Field Summary
Fields inherited from class org.apache.kafka.common.metrics.stats.SampledStat
samples
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
combine
(List<SampledStat.Sample> samples, MetricConfig config, long now) protected void
update
(SampledStat.Sample sample, MetricConfig config, double value, long now) Methods inherited from class org.apache.kafka.common.metrics.stats.SampledStat
current, measure, newSample, oldest, purgeObsoleteSamples, record, toString
-
Constructor Details
-
WindowedSum
public WindowedSum()
-
-
Method Details
-
update
- Specified by:
update
in classSampledStat
-
combine
- Specified by:
combine
in classSampledStat
-