Class ExponentialWeightedAvg
java.lang.Object
org.apache.kafka.common.metrics.stats.SampledStat
org.apache.kafka.common.metrics.stats.Avg
org.apache.kafka.common.metrics.stats.ExponentialWeightedAvg
- All Implemented Interfaces:
Measurable
,MeasurableStat
,MetricValueProvider<Double>
,Stat
A
SampledStat
that maintains an exponentially weighted average over its samples.
This is the same as an Exponential Moving Average for a fixed sample set-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
combine
(List<org.apache.kafka.common.metrics.stats.SampledStat.Sample> samples, MetricConfig config, long now)
-
Constructor Details
-
ExponentialWeightedAvg
public ExponentialWeightedAvg(double alpha)
-
-
Method Details
-
combine
public double combine(List<org.apache.kafka.common.metrics.stats.SampledStat.Sample> samples, MetricConfig config, long now)
-