Class SamplerConfig.Builder
java.lang.Object
io.helidon.telemetry.otelconfig.SamplerConfig.BuilderBase<SamplerConfig.Builder, SamplerConfig>
io.helidon.telemetry.otelconfig.SamplerConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<SamplerConfig.Builder, SamplerConfig>, Builder<SamplerConfig.Builder, SamplerConfig>, ConfigBuilderSupport.ConfiguredBuilder<SamplerConfig.Builder, SamplerConfig>, Supplier<SamplerConfig>
- Enclosing interface:
SamplerConfig
public static class SamplerConfig.Builder
extends SamplerConfig.BuilderBase<SamplerConfig.Builder, SamplerConfig>
implements Builder<SamplerConfig.Builder, SamplerConfig>
Fluent API builder for
SamplerConfig.-
Nested Class Summary
Nested classes/interfaces inherited from class SamplerConfig.BuilderBase
SamplerConfig.BuilderBase.SamplerConfigImplModifier 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 SamplerConfig.BuilderBase
clearParam, config, config, from, from, param, param, preBuildPrototype, toString, type, type, validatePrototypeModifier and TypeMethodDescriptionClear existing value of param.config()Configuration used to configure this instance.Update builder from configuration (node of this type).from(SamplerConfig prototype) Update this builder from an existing prototype instance.from(SamplerConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.param()Sampler parameter.param(double param) Sampler parameter.protected voidHandles providers and decorators.toString()type()Sampler type.type(SamplerType type) Sampler type.protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault SamplerConfigget()default SamplerConfig.Builderidentity()Instance of this builder as the correct type.default SamplerConfig.Builderupdate(Consumer<SamplerConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault SamplerConfig.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<SamplerConfig.Builder, SamplerConfig>- 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<SamplerConfig.Builder, SamplerConfig>- Returns:
- instance of the built type
-