Interface AggregatorFactory
-
- All Known Implementing Classes:
Base2ExponentialHistogramAggregation,DefaultAggregation,DropAggregation,ExplicitBucketHistogramAggregation,LastValueAggregation,SumAggregation
public interface AggregatorFactoryAn internal interface for returning an Aggregator from an Aggregation.This interface should be removed when adding support for custom aggregations to the metrics SDK.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends PointData,U extends ExemplarData>
Aggregator<T,U>createAggregator(InstrumentDescriptor instrumentDescriptor, ExemplarFilter exemplarFilter, MemoryMode memoryMode)Returns a newAggregator.booleanisCompatibleWithInstrument(InstrumentDescriptor instrumentDescriptor)Determine if theAggregatorproduced bycreateAggregator(InstrumentDescriptor, ExemplarFilter, MemoryMode)is compatible with theinstrumentDescriptor.
-
-
-
Method Detail
-
createAggregator
<T extends PointData,U extends ExemplarData> Aggregator<T,U> createAggregator(InstrumentDescriptor instrumentDescriptor, ExemplarFilter exemplarFilter, MemoryMode memoryMode)
Returns a newAggregator.- Parameters:
instrumentDescriptor- the descriptor of theInstrumentthat will record measurements.exemplarFilter- the filter on which measurements should turn into exemplarsmemoryMode- TheMemoryModethe aggregator will use- Returns:
- a new
Aggregator.Aggregator.drop()indicates no measurements should be recorded.
-
isCompatibleWithInstrument
boolean isCompatibleWithInstrument(InstrumentDescriptor instrumentDescriptor)
Determine if theAggregatorproduced bycreateAggregator(InstrumentDescriptor, ExemplarFilter, MemoryMode)is compatible with theinstrumentDescriptor.
-
-