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
FieldsModifier and TypeFieldDescriptionprivate final AtomicReference
<Double> private static final Double
private final MutableDoublePointData
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Handle
(ExemplarReservoir<DoubleExemplarData> reservoir, MemoryMode memoryMode) -
Method Summary
Modifier and TypeMethodDescriptionprotected DoublePointData
doAggregateThenMaybeReset
(long startEpochNanos, long epochNanos, Attributes attributes, List<DoubleExemplarData> exemplars, boolean reset) Implementation of theAggregatorHandle.aggregateThenMaybeReset(long, long, Attributes, boolean)
.protected void
doRecordDouble
(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 Details
-
DEFAULT_VALUE
-
current
-
reusablePoint
-
-
Constructor Details
-
Handle
-
-
Method Details
-
doAggregateThenMaybeReset
protected DoublePointData doAggregateThenMaybeReset(long startEpochNanos, long epochNanos, Attributes attributes, List<DoubleExemplarData> exemplars, boolean reset) Description copied from class:AggregatorHandle
Implementation of theAggregatorHandle.aggregateThenMaybeReset(long, long, Attributes, boolean)
.- Specified by:
doAggregateThenMaybeReset
in classAggregatorHandle<DoublePointData,
DoubleExemplarData>
-
doRecordDouble
protected void doRecordDouble(double value) Description copied from class:AggregatorHandle
Concrete Aggregator instances should implement this method in order support recordings of double values.- Overrides:
doRecordDouble
in classAggregatorHandle<DoublePointData,
DoubleExemplarData>
-