Class Base2ExponentialHistogramAggregationConfig.BuilderBase<BUILDER extends Base2ExponentialHistogramAggregationConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends Base2ExponentialHistogramAggregationConfig>

java.lang.Object
io.helidon.telemetry.otelconfig.Base2ExponentialHistogramAggregationConfig.BuilderBase<BUILDER, PROTOTYPE>
Type Parameters:
BUILDER - type of the builder extending this abstract builder
PROTOTYPE - type of the prototype interface that would be built by Prototype.Builder.buildPrototype()
All Implemented Interfaces:
Prototype.Builder<BUILDER, PROTOTYPE>, ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
Direct Known Subclasses:
Base2ExponentialHistogramAggregationConfig.Builder
Enclosing interface:
Base2ExponentialHistogramAggregationConfig

public abstract static class Base2ExponentialHistogramAggregationConfig.BuilderBase<BUILDER extends Base2ExponentialHistogramAggregationConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends Base2ExponentialHistogramAggregationConfig> extends Object implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
Fluent API builder base for Base2ExponentialHistogramAggregationConfig.
  • Constructor Details

    • BuilderBase

      protected BuilderBase()
      Protected to support extensibility.
  • Method Details

    • from

      Update this builder from an existing prototype instance. This method disables automatic service discovery.
      Parameters:
      prototype - existing prototype to update this builder from
      Returns:
      updated builder instance
    • from

      Update this builder from an existing prototype builder instance.
      Parameters:
      builder - existing builder prototype to update this builder from
      Returns:
      updated builder instance
    • config

      public BUILDER config(Config config)
      Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.
      Specified by:
      config in interface ConfigBuilderSupport.ConfiguredBuilder<BUILDER extends Base2ExponentialHistogramAggregationConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends Base2ExponentialHistogramAggregationConfig>
      Parameters:
      config - configuration instance used to obtain values to update this builder
      Returns:
      updated builder instance
    • clearMaxBuckets

      public BUILDER clearMaxBuckets()
      Clear existing value of maxBuckets.
      Returns:
      updated builder instance
      See Also:
    • maxBuckets

      public BUILDER maxBuckets(int maxBuckets)
      Maximum number of buckets.
      Parameters:
      maxBuckets - maximum number of buckets
      Returns:
      updated builder instance
      See Also:
    • clearMaxScale

      public BUILDER clearMaxScale()
      Clear existing value of maxScale.
      Returns:
      updated builder instance
      See Also:
    • maxScale

      public BUILDER maxScale(int maxScale)
      Maximum scale.
      Parameters:
      maxScale - maximum scale
      Returns:
      updated builder instance
      See Also:
    • recordMinMax

      public BUILDER recordMinMax(boolean recordMinMax)
      Whether the min and max should be recorded.
      Parameters:
      recordMinMax - whether to record min and max
      Returns:
      updated builder instance
      See Also:
    • maxBuckets

      public Optional<Integer> maxBuckets()
      Maximum number of buckets.
      Returns:
      maximum number of buckets
    • maxScale

      public Optional<Integer> maxScale()
      Maximum scale.
      Returns:
      maximum scale
    • recordMinMax

      public boolean recordMinMax()
      Whether the min and max should be recorded.
      Returns:
      whether to record min and max
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • preBuildPrototype

      protected void preBuildPrototype()
      Handles providers and decorators.
    • validatePrototype

      protected void validatePrototype()
      Validates required properties.
    • config

      protected Optional<Config> config()
      Configuration used to configure this instance.
      Returns:
      config instance