Class InstrumentSelectorConfig.Builder
java.lang.Object
io.helidon.telemetry.otelconfig.InstrumentSelectorConfig.BuilderBase<InstrumentSelectorConfig.Builder, InstrumentSelectorConfig>
io.helidon.telemetry.otelconfig.InstrumentSelectorConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<InstrumentSelectorConfig.Builder, InstrumentSelectorConfig>, Builder<InstrumentSelectorConfig.Builder, InstrumentSelectorConfig>, ConfigBuilderSupport.ConfiguredBuilder<InstrumentSelectorConfig.Builder, InstrumentSelectorConfig>, Supplier<InstrumentSelectorConfig>
- Enclosing interface:
InstrumentSelectorConfig
public static class InstrumentSelectorConfig.Builder
extends InstrumentSelectorConfig.BuilderBase<InstrumentSelectorConfig.Builder, InstrumentSelectorConfig>
implements Builder<InstrumentSelectorConfig.Builder, InstrumentSelectorConfig>
Fluent API builder for
InstrumentSelectorConfig.-
Nested Class Summary
Nested classes/interfaces inherited from class InstrumentSelectorConfig.BuilderBase
InstrumentSelectorConfig.BuilderBase.InstrumentSelectorConfigImplModifier 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 InstrumentSelectorConfig.BuilderBase
clearMeterName, clearMeterSchemaUrl, clearMeterVersion, clearName, clearType, clearUnit, config, config, from, from, meterName, meterName, meterSchemaUrl, meterSchemaUrl, meterVersion, meterVersion, name, name, preBuildPrototype, toString, type, type, unit, unit, validatePrototypeModifier and TypeMethodDescriptionClear existing value of meterName.Clear existing value of meterSchemaUrl.Clear existing value of meterVersion.Clear existing value of name.Clear existing value of type.Clear existing value of unit.config()Configuration used to configure this instance.Update builder from configuration (node of this type).from(InstrumentSelectorConfig prototype) Update this builder from an existing prototype instance.from(InstrumentSelectorConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Meter name.Meter name.Meter schema URL.meterSchemaUrl(String meterSchemaUrl) Meter schema URL.Meter version.meterVersion(String meterVersion) Meter version.name()Instrument name.Instrument name.protected voidHandles providers and decorators.toString()Optional<io.opentelemetry.sdk.metrics.InstrumentType> type()Instrument type.type(io.opentelemetry.sdk.metrics.InstrumentType type) Instrument type.unit()Instrument unit.Instrument unit.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 InstrumentSelectorConfigget()default InstrumentSelectorConfig.Builderidentity()Instance of this builder as the correct type.default InstrumentSelectorConfig.Builderupdate(Consumer<InstrumentSelectorConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault InstrumentSelectorConfig.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<InstrumentSelectorConfig.Builder, InstrumentSelectorConfig>- 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<InstrumentSelectorConfig.Builder, InstrumentSelectorConfig>- Returns:
- instance of the built type
-