Class StepTuple2<T1,​T2>

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

    Modifier and Type Method Description
    T1 poll1()  
    T2 poll2()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StepTuple2

      public StepTuple2​(Clock clock, long stepMillis, T1 t1NoValue, T2 t2NoValue, java.util.function.Supplier<T1> t1Supplier, java.util.function.Supplier<T2> t2Supplier)
  • Method Details

    • poll1

      public T1 poll1()
      Returns:
      The value for the last completed interval.
    • poll2

      public T2 poll2()
      Returns:
      The value for the last completed interval.