Class SimpleRate
java.lang.Object
org.apache.kafka.common.metrics.stats.Rate
org.apache.kafka.common.metrics.stats.SimpleRate
- All Implemented Interfaces:
Measurable,MeasurableStat,MetricValueProvider<Double>,Stat
A simple rate the rate is incrementally calculated based on the elapsed time between the earliest reading and now. An exception is made for the first window, which is considered of fixed size. This avoids the issue of an artificially high rate when the gap between readings is close to 0.
Constructor Summary
ConstructorsMethod Summary
Methods inherited from class org.apache.kafka.common.metrics.stats.Rate
measure, record, toString, unitNameMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.kafka.common.metrics.Measurable
value
Constructor Details
SimpleRate
public SimpleRate()
Method Details
windowSize
- Overrides:
windowSizein classRate