Interface DefaultAggregationSelector

    • Method Detail

      • with

        default DefaultAggregationSelector with​(InstrumentType instrumentType,
                                                Aggregation aggregation)
        Returns a default aggregation selector which returns the given aggregation for the given instrumentType, and defers to this for other instrument types.

        For example, the following produces a selector which drops histograms and uses the default aggregation for other instruments:

        
         // DefaultAggregationSelector selector =
         //   DefaultAggregationSelector.getDefault()
         //     .with(InstrumentType.HISTOGRAM, Aggregation.drop());
         
        Since:
        1.16.0
      • getDefaultAggregation

        Aggregation getDefaultAggregation​(InstrumentType instrumentType)
        Return the default aggregation for the InstrumentType.

        The default aggregation is used when an instrument does not match any views.

      • asString

        static java.lang.String asString​(DefaultAggregationSelector selector)
        Returns a string representation of this selector, for using in Object.toString() implementations.
        Since:
        1.38.0