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