public class StepDouble extends StepValue<java.lang.Double>
com.netflix.spectator.impl.StepDouble
in that we want to be able
to increment BEFORE rolling over the interval.Constructor and Description |
---|
StepDouble(Clock clock,
long stepMillis) |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.atomic.DoubleAdder |
getCurrent() |
protected java.lang.Double |
noValue() |
protected java.util.function.Supplier<java.lang.Double> |
valueSupplier() |
public StepDouble(Clock clock, long stepMillis)
protected java.util.function.Supplier<java.lang.Double> valueSupplier()
valueSupplier
in class StepValue<java.lang.Double>
protected java.lang.Double noValue()
noValue
in class StepValue<java.lang.Double>
StepValue.poll()
if within the first
step period or if the previous step didn't record a value.public java.util.concurrent.atomic.DoubleAdder getCurrent()