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>
- 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 ProcessorConfig.BuilderBase
ProcessorConfig.BuilderBase.ProcessorConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
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.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 ProcessorConfig.BuilderBase
addExporters, clearExporters, config, exporters, exporters, from, from, type, typeModifier and TypeMethodDescriptionaddExporters(List<String> exporters) Name(s) of the exporter(s) this processor should use; specifying no names uses all configured exporters (or if no exporters are configured, the default OpenTelemetry exporter(s)).Clear all exporters.config()Configuration used to configure this instance.Name(s) of the exporter(s) this processor should use; specifying no names uses all configured exporters (or if no exporters are configured, the default OpenTelemetry exporter(s)).Name(s) of the exporter(s) this processor should use; specifying no names uses all configured exporters (or if no exporters are configured, the default OpenTelemetry exporter(s)).from(ProcessorConfig prototype) Update this builder from an existing prototype instance.from(ProcessorConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.type()Processor type.type(ProcessorType type) Processor type.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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
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
-
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
-
scheduleDelay
-
maxQueueSize
-
maxExportBatchSize
Maximum number of items batched for export together. OpenTelemetry requires this value to not exceed themaxQueueSize().- Returns:
- maximum number of items batched
-
timeout
-
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>
-