Class NoopAggregator
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.aggregator.NoopAggregator
-
- All Implemented Interfaces:
Aggregator
public final class NoopAggregator extends java.lang.Object implements Aggregator
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AggregatorFactorygetFactory()booleanhasRecordings()Whether there have been any recordings since this aggregator has been reset.voidmergeToAndReset(Aggregator aggregator)Merges the current value into the givenaggregatorand resets the current value in thisAggregator.voidrecordDouble(double value)Updates the current aggregator with a newly recordeddoublevalue.voidrecordLong(long value)Updates the current aggregator with a newly recordedlongvalue.MetricData.PointtoPoint(long startEpochNanos, long epochNanos, io.opentelemetry.api.common.Labels labels)Returns thePointwith the given properties and the value from this Aggregation.
-
-
-
Method Detail
-
getFactory
public static AggregatorFactory getFactory()
-
mergeToAndReset
public void mergeToAndReset(Aggregator aggregator)
Description copied from interface:AggregatorMerges the current value into the givenaggregatorand resets the current value in thisAggregator.- Specified by:
mergeToAndResetin interfaceAggregator- Parameters:
aggregator- value to merge into.
-
toPoint
@Nullable public MetricData.Point toPoint(long startEpochNanos, long epochNanos, io.opentelemetry.api.common.Labels labels)
Description copied from interface:AggregatorReturns thePointwith the given properties and the value from this Aggregation.- Specified by:
toPointin interfaceAggregator- Parameters:
startEpochNanos- the startEpochNanos for thePoint.epochNanos- the epochNanos for thePoint.labels- the labels for thePoint.- Returns:
- the
Pointwith the value from this Aggregation.
-
recordLong
public void recordLong(long value)
Description copied from interface:AggregatorUpdates the current aggregator with a newly recordedlongvalue.- Specified by:
recordLongin interfaceAggregator- Parameters:
value- the newlongvalue to be added.
-
recordDouble
public void recordDouble(double value)
Description copied from interface:AggregatorUpdates the current aggregator with a newly recordeddoublevalue.- Specified by:
recordDoublein interfaceAggregator- Parameters:
value- the newdoublevalue to be added.
-
hasRecordings
public boolean hasRecordings()
Description copied from interface:AggregatorWhether there have been any recordings since this aggregator has been reset.- Specified by:
hasRecordingsin interfaceAggregator
-
-