Class StepValue<V>
java.lang.Object
io.micrometer.core.instrument.step.StepValue<V>
- Direct Known Subclasses:
StepDouble
,StepLong
Tracks 'values' for periods (steps) of time. The previous step's value is obtained by
calling
poll()
.- Since:
- 1.4.0
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
StepValue
-
-
Method Details
-
valueSupplier
-
noValue
- Returns:
- value that should be returned by
poll()
if within the first step period or if the previous step didn't record a value.
-
poll
- Returns:
- The value for the last completed interval.
-