Class TimeWindowSum
java.lang.Object
io.micrometer.core.instrument.distribution.TimeWindowSum
An implementation of a moving-window sum based on a configurable ring buffer.
- Since:
- 1.4.0
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TimeWindowSum
-
-
Method Details
-
record
public void record(long sampleMillis) For use by timer implementations.- Parameters:
sampleMillis
- The value to record, in milliseconds.
-
poll
public double poll()- Returns:
- The sum, in milliseconds.
-