java.lang.Object
io.micrometer.core.instrument.step.StepTuple2<T1,T2>
public class StepTuple2<T1,T2>
extends java.lang.Object
Tracks multiple 'values' for periods (steps) of time. The previous step's values are
obtained by calling
poll1()
or
poll2()
.
- Since:
- 1.5.1
-
Constructor Summary
Constructors
Constructor |
Description |
StepTuple2(Clock clock,
long stepMillis,
T1 t1NoValue,
T2 t2NoValue,
java.util.function.Supplier<T1> t1Supplier,
java.util.function.Supplier<T2> t2Supplier) |
|
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
public StepTuple2(
Clock clock,
long stepMillis,
T1 t1NoValue,
T2 t2NoValue,
java.util.function.Supplier<T1> t1Supplier,
java.util.function.Supplier<T2> t2Supplier)
-
Method Details
-
- Returns:
- The value for the last completed interval.
-
- Returns:
- The value for the last completed interval.