Class BatchProcessorConfig.Builder
java.lang.Object
io.helidon.telemetry.otelconfig.ProcessorConfig.BuilderBase<BatchProcessorConfig.Builder, BatchProcessorConfig>
io.helidon.telemetry.otelconfig.BatchProcessorConfig.BuilderBase<BatchProcessorConfig.Builder, BatchProcessorConfig>
io.helidon.telemetry.otelconfig.BatchProcessorConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<BatchProcessorConfig.Builder, BatchProcessorConfig>, Builder<BatchProcessorConfig.Builder, BatchProcessorConfig>, ConfigBuilderSupport.ConfiguredBuilder<BatchProcessorConfig.Builder, BatchProcessorConfig>, Supplier<BatchProcessorConfig>
- Enclosing interface:
BatchProcessorConfig
public static class BatchProcessorConfig.Builder
extends BatchProcessorConfig.BuilderBase<BatchProcessorConfig.Builder, BatchProcessorConfig>
implements Builder<BatchProcessorConfig.Builder, BatchProcessorConfig>
Fluent API builder for
BatchProcessorConfig.-
Nested Class Summary
Nested classes/interfaces inherited from class BatchProcessorConfig.BuilderBase
BatchProcessorConfig.BuilderBase.BatchProcessorConfigImplModifier 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. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class BatchProcessorConfig.BuilderBase
clearMaxExportBatchSize, clearMaxQueueSize, clearScheduleDelay, clearTimeout, config, from, from, maxExportBatchSize, maxExportBatchSize, maxQueueSize, maxQueueSize, preBuildPrototype, scheduleDelay, scheduleDelay, timeout, timeout, toString, validatePrototypeModifier 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 Builder
get, identity, updateModifier and TypeMethodDescriptiondefault BatchProcessorConfigget()default BatchProcessorConfig.Builderidentity()Instance of this builder as the correct type.default BatchProcessorConfig.Builderupdate(Consumer<BatchProcessorConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault BatchProcessorConfig.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<BatchProcessorConfig.Builder, BatchProcessorConfig>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<BatchProcessorConfig.Builder, BatchProcessorConfig>- Returns:
- instance of the built type
-