Class DoubleExplicitBucketHistogramAggregator.Handle
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.internal.aggregator.AggregatorHandle<HistogramPointData,DoubleExemplarData>
-
- io.opentelemetry.sdk.metrics.internal.aggregator.DoubleExplicitBucketHistogramAggregator.Handle
-
- Enclosing class:
- DoubleExplicitBucketHistogramAggregator
static final class DoubleExplicitBucketHistogramAggregator.Handle extends AggregatorHandle<HistogramPointData,DoubleExemplarData>
-
-
Field Summary
Fields Modifier and Type Field Description private double[]
boundaries
private java.util.List<java.lang.Double>
boundaryList
private long
count
private long[]
counts
private java.lang.Object
lock
private double
max
private double
min
private MutableHistogramPointData
reusablePoint
private double
sum
-
Constructor Summary
Constructors Constructor Description Handle(java.util.List<java.lang.Double> boundaryList, double[] boundaries, ExemplarReservoir<DoubleExemplarData> reservoir, MemoryMode memoryMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HistogramPointData
doAggregateThenMaybeReset(long startEpochNanos, long epochNanos, Attributes attributes, java.util.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.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, hasRecordedValues, recordDouble, recordDouble, recordLong, recordLong
-
-
-
-
Field Detail
-
boundaryList
private final java.util.List<java.lang.Double> boundaryList
-
boundaries
private final double[] boundaries
-
lock
private final java.lang.Object lock
-
sum
private double sum
-
min
private double min
-
max
private double max
-
count
private long count
-
counts
private final long[] counts
-
reusablePoint
@Nullable private MutableHistogramPointData reusablePoint
-
-
Constructor Detail
-
Handle
Handle(java.util.List<java.lang.Double> boundaryList, double[] boundaries, ExemplarReservoir<DoubleExemplarData> reservoir, MemoryMode memoryMode)
-
-
Method Detail
-
doAggregateThenMaybeReset
protected HistogramPointData doAggregateThenMaybeReset(long startEpochNanos, long epochNanos, Attributes attributes, java.util.List<DoubleExemplarData> exemplars, boolean reset)
Description copied from class:AggregatorHandle
Implementation of theAggregatorHandle.aggregateThenMaybeReset(long, long, Attributes, boolean)
.- Specified by:
doAggregateThenMaybeReset
in classAggregatorHandle<HistogramPointData,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<HistogramPointData,DoubleExemplarData>
-
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<HistogramPointData,DoubleExemplarData>
-
-