Package io.helidon.telemetry.otelconfig
Class BatchProcessorConfig.BuilderBase<BUILDER extends BatchProcessorConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends BatchProcessorConfig>
java.lang.Object
io.helidon.telemetry.otelconfig.ProcessorConfig.BuilderBase<BUILDER,PROTOTYPE>
io.helidon.telemetry.otelconfig.BatchProcessorConfig.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
- Direct Known Subclasses:
BatchProcessorConfig.Builder
- Enclosing interface:
BatchProcessorConfig
public abstract static class BatchProcessorConfig.BuilderBase<BUILDER extends BatchProcessorConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends BatchProcessorConfig>
extends ProcessorConfig.BuilderBase<BUILDER,PROTOTYPE>
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
BatchProcessorConfig.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class io.helidon.telemetry.otelconfig.ProcessorConfig.BuilderBase
ProcessorConfig.BuilderBase.ProcessorConfigImpl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClear existing value of maxExportBatchSize.Clear existing value of maxQueueSize.Clear existing value of scheduleDelay.Clear existing value of timeout.Deprecated.Update builder from configuration (node of this type).from(BatchProcessorConfig prototype) Update this builder from an existing prototype instance.from(BatchProcessorConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Maximum number of items batched for export together.maxExportBatchSize(int maxExportBatchSize) Maximum number of items batched for export together.Maximum number of items retained before discarding excess unexported ones.maxQueueSize(int maxQueueSize) Maximum number of items retained before discarding excess unexported ones.protected voidHandles providers and decorators.Delay between consecutive exports.scheduleDelay(Duration scheduleDelay) Delay between consecutive exports.timeout()Maximum time an export can run before being cancelled.Maximum time an export can run before being cancelled.toString()protected voidValidates required properties.Methods inherited from class io.helidon.telemetry.otelconfig.ProcessorConfig.BuilderBase
addExporters, clearExporters, config, exporters, exporters, from, from, type, typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
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
Deprecated.Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends BatchProcessorConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends BatchProcessorConfig> - Overrides:
configin classProcessorConfig.BuilderBase<BUILDER extends BatchProcessorConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends BatchProcessorConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends BatchProcessorConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends BatchProcessorConfig> - Overrides:
configin classProcessorConfig.BuilderBase<BUILDER extends BatchProcessorConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends BatchProcessorConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
clearScheduleDelay
Clear existing value of scheduleDelay.- Returns:
- updated builder instance
- See Also:
-
scheduleDelay
Delay between consecutive exports.- Parameters:
scheduleDelay- delay between consecutive exports- Returns:
- updated builder instance
- See Also:
-
clearMaxQueueSize
Clear existing value of maxQueueSize.- Returns:
- updated builder instance
- See Also:
-
maxQueueSize
Maximum number of items retained before discarding excess unexported ones.- Parameters:
maxQueueSize- maximum number of items kept- Returns:
- updated builder instance
- See Also:
-
clearMaxExportBatchSize
Clear existing value of maxExportBatchSize.- Returns:
- updated builder instance
- See Also:
-
maxExportBatchSize
Maximum number of items batched for export together. OpenTelemetry requires this value to not exceed themaxQueueSize().- Parameters:
maxExportBatchSize- maximum number of items batched- Returns:
- updated builder instance
- See Also:
-
clearTimeout
Clear existing value of timeout.- Returns:
- updated builder instance
- See Also:
-
timeout
Maximum time an export can run before being cancelled.- Parameters:
timeout- maximum export time- Returns:
- updated builder instance
- See Also:
-
scheduleDelay
Delay between consecutive exports.- Returns:
- delay between consecutive exports
-
maxQueueSize
Maximum number of items retained before discarding excess unexported ones.- Returns:
- maximum number of items kept
-
maxExportBatchSize
Maximum number of items batched for export together. OpenTelemetry requires this value to not exceed themaxQueueSize().- Returns:
- maximum number of items batched
-
timeout
Maximum time an export can run before being cancelled.- Returns:
- maximum export time
-
toString
- Overrides:
toStringin classProcessorConfig.BuilderBase<BUILDER extends BatchProcessorConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends BatchProcessorConfig>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototypein classProcessorConfig.BuilderBase<BUILDER extends BatchProcessorConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends BatchProcessorConfig>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototypein classProcessorConfig.BuilderBase<BUILDER extends BatchProcessorConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends BatchProcessorConfig>
-
config(io.helidon.config.Config)