public abstract class StepValue<V>
extends java.lang.Object
poll()
.Constructor and Description |
---|
StepValue(Clock clock,
long stepMillis) |
Modifier and Type | Method and Description |
---|---|
protected abstract V |
noValue() |
V |
poll() |
protected abstract java.util.function.Supplier<V> |
valueSupplier() |
public StepValue(Clock clock, long stepMillis)
protected abstract java.util.function.Supplier<V> valueSupplier()
protected abstract V noValue()
poll()
if within the first
step period or if the previous step didn't record a value.public V poll()