Class StepDouble


  • public class StepDouble
    extends java.lang.Object
    Subtly different from com.netflix.spectator.impl.StepDouble in that we want to be able to increment BEFORE rolling over the interval.
    • Constructor Summary

      Constructors 
      Constructor Description
      StepDouble​(Clock clock, long stepMillis)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.atomic.DoubleAdder getCurrent()  
      double poll()  
      • Methods inherited from class java.lang.Object

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

      • StepDouble

        public StepDouble​(Clock clock,
                          long stepMillis)
    • Method Detail

      • getCurrent

        public java.util.concurrent.atomic.DoubleAdder getCurrent()
      • poll

        public double poll()
        Returns:
        The value for the last completed interval.