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 Doubleprivate final MutableDoublePointData -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateHandle(ExemplarReservoir<DoubleExemplarData> reservoir, MemoryMode memoryMode) -
Method Summary
Modifier and TypeMethodDescriptionprotected DoublePointDatadoAggregateThenMaybeReset(long startEpochNanos, long epochNanos, Attributes attributes, 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 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: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>
-