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

java.lang.Object
io.helidon.telemetry.otelconfig.ExplicitBucketHistogramAggregationConfig.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:
ExplicitBucketHistogramAggregationConfig.Builder
Enclosing interface:
ExplicitBucketHistogramAggregationConfig

public abstract static class ExplicitBucketHistogramAggregationConfig.BuilderBase<BUILDER extends ExplicitBucketHistogramAggregationConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends ExplicitBucketHistogramAggregationConfig> extends Object implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
Fluent API builder base for ExplicitBucketHistogramAggregationConfig.
  • 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 ExplicitBucketHistogramAggregationConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends ExplicitBucketHistogramAggregationConfig>
      Parameters:
      config - configuration instance used to obtain values to update this builder
      Returns:
      updated builder instance
    • clearBucketBoundaries

      public BUILDER clearBucketBoundaries()
      Clear all bucketBoundaries.
      Returns:
      updated builder instance
      See Also:
    • bucketBoundaries

      public BUILDER bucketBoundaries(List<Double> bucketBoundaries)
      Explicit bucket boundaries.
      Parameters:
      bucketBoundaries - bucket boundaries
      Returns:
      updated builder instance
      See Also:
    • addBucketBoundaries

      public BUILDER addBucketBoundaries(List<Double> bucketBoundaries)
      Explicit bucket boundaries.
      Parameters:
      bucketBoundaries - bucket boundaries
      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:
    • bucketBoundaries

      public List<Double> bucketBoundaries()
      Explicit bucket boundaries.
      Returns:
      bucket boundaries
    • 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