Class StepLong
java.lang.Object
io.micrometer.core.instrument.step.StepValue<java.lang.Long>
io.micrometer.core.instrument.step.StepLong
public class StepLong extends StepValue<java.lang.Long>
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description java.util.concurrent.atomic.LongAddergetCurrent()protected java.lang.LongnoValue()protected java.util.function.Supplier<java.lang.Long>valueSupplier()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
StepLong
-
-
Method Details
-
valueSupplier
protected java.util.function.Supplier<java.lang.Long> valueSupplier()- Specified by:
valueSupplierin classStepValue<java.lang.Long>
-
noValue
protected java.lang.Long noValue()- Specified by:
noValuein classStepValue<java.lang.Long>- Returns:
- value that should be returned by
StepValue.poll()if within the first step period or if the previous step didn't record a value.
-
getCurrent
public java.util.concurrent.atomic.LongAdder getCurrent()
-