Class DoubleLastValueAggregator.Handle
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.internal.aggregator.AggregatorHandle<DoublePointData,DoubleExemplarData>
-
- io.opentelemetry.sdk.metrics.internal.aggregator.DoubleLastValueAggregator.Handle
-
- Enclosing class:
- DoubleLastValueAggregator
static final class DoubleLastValueAggregator.Handle extends AggregatorHandle<DoublePointData,DoubleExemplarData>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.atomic.AtomicReference<java.lang.Double>currentprivate static java.lang.DoubleDEFAULT_VALUEprivate MutableDoublePointDatareusablePoint
-
Constructor Summary
Constructors Modifier Constructor Description privateHandle(ExemplarReservoir<DoubleExemplarData> reservoir, MemoryMode memoryMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DoublePointDatadoAggregateThenMaybeReset(long startEpochNanos, long epochNanos, Attributes attributes, java.util.List<DoubleExemplarData> exemplars, boolean reset)Implementation of theAggregatorHandle.aggregateThenMaybeReset(long, long, Attributes, boolean).protected voiddoRecordDouble(double value)Concrete Aggregator instances should implement this method in order support recordings of double values.-
Methods inherited from class io.opentelemetry.sdk.metrics.internal.aggregator.AggregatorHandle
aggregateThenMaybeReset, doRecordLong, hasRecordedValues, recordDouble, recordDouble, recordLong, recordLong
-
-
-
-
Field Detail
-
DEFAULT_VALUE
@Nullable private static final java.lang.Double DEFAULT_VALUE
-
current
private final java.util.concurrent.atomic.AtomicReference<java.lang.Double> current
-
reusablePoint
@Nullable private final MutableDoublePointData reusablePoint
-
-
Constructor Detail
-
Handle
private Handle(ExemplarReservoir<DoubleExemplarData> reservoir, MemoryMode memoryMode)
-
-
Method Detail
-
doAggregateThenMaybeReset
protected DoublePointData doAggregateThenMaybeReset(long startEpochNanos, long epochNanos, Attributes attributes, java.util.List<DoubleExemplarData> exemplars, boolean reset)
Description copied from class:AggregatorHandleImplementation of theAggregatorHandle.aggregateThenMaybeReset(long, long, Attributes, boolean).- Specified by:
doAggregateThenMaybeResetin classAggregatorHandle<DoublePointData,DoubleExemplarData>
-
doRecordDouble
protected void doRecordDouble(double value)
Description copied from class:AggregatorHandleConcrete Aggregator instances should implement this method in order support recordings of double values.- Overrides:
doRecordDoublein classAggregatorHandle<DoublePointData,DoubleExemplarData>
-
-