Class TracingObserverConfig.Builder
java.lang.Object
io.helidon.webserver.observe.ObserverConfigBase.BuilderBase<TracingObserverConfig.Builder, TracingObserverConfig>
io.helidon.webserver.observe.tracing.TracingObserverConfig.BuilderBase<TracingObserverConfig.Builder, TracingObserverConfig>
io.helidon.webserver.observe.tracing.TracingObserverConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<TracingObserverConfig.Builder, TracingObserverConfig>, Builder<TracingObserverConfig.Builder, TracingObserver>, ConfigBuilderSupport.ConfiguredBuilder<TracingObserverConfig.Builder, TracingObserverConfig>, Supplier<TracingObserver>
- Enclosing interface:
TracingObserverConfig
public static class TracingObserverConfig.Builder
extends TracingObserverConfig.BuilderBase<TracingObserverConfig.Builder, TracingObserverConfig>
implements Builder<TracingObserverConfig.Builder, TracingObserver>
Fluent API builder for
TracingObserver.-
Nested Class Summary
Nested classes/interfaces inherited from class TracingObserverConfig.BuilderBase
TracingObserverConfig.BuilderBase.TracingObserverConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class ObserverConfigBase.BuilderBase
ObserverConfigBase.BuilderBase.ObserverConfigBaseImplModifier 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 TracingObserverConfig.BuilderBase
addPathConfig, addPathConfig, addPathConfigs, addSocket, addSockets, clearPathConfigs, clearSockets, config, envConfig, envConfig, envConfig, envConfig, from, from, pathConfigs, pathConfigs, preBuildPrototype, sockets, sockets, toString, tracer, tracer, validatePrototype, waitTracingEnabled, waitTracingEnabled, weight, weightModifier and TypeMethodDescriptionaddPathConfig(PathTracingConfig pathConfig) Path specific configuration of tracing.addPathConfig(Consumer<PathTracingConfig.Builder> consumer) Path specific configuration of tracing.addPathConfigs(List<? extends PathTracingConfig> pathConfigs) Path specific configuration of tracing.Sockets to trace.addSockets(Set<String> sockets) Sockets to trace.Clear all pathConfigs.Clear all sockets.Update builder from configuration (node of this type).Use the provided configuration as a default for any request.envConfig(TracingConfig envConfig) Use the provided configuration as a default for any request.envConfig(Consumer<TracingConfig.Builder> consumer) Use the provided configuration as a default for any request.envConfig(Supplier<? extends TracingConfig> supplier) Use the provided configuration as a default for any request.from(TracingObserverConfig prototype) Update this builder from an existing prototype instance.from(TracingObserverConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Path specific configuration of tracing.pathConfigs(List<? extends PathTracingConfig> pathConfigs) Path specific configuration of tracing.protected voidHandles providers and decorators.sockets()Sockets to trace.Sockets to trace.toString()tracer()Tracer to use to extract inbound span context.Tracer to use to extract inbound span context.protected voidValidates required properties.booleanWhether waiting due to concurrency limit constraints should be traced.waitTracingEnabled(boolean waitTracingEnabled) Whether waiting due to concurrency limit constraints should be traced.doubleweight()Weight of the feature registered with WebServer.weight(double weight) Weight of the feature registered with WebServer.Methods inherited from class ObserverConfigBase.BuilderBase
config, enabled, enabled, from, from, name, nameModifier and TypeMethodDescriptionconfig()The config instance used to configure this observer.booleanenabled()Whether this observer is enabled.enabled(boolean enabled) Whether this observer is enabled.from(ObserverConfigBase prototype) Update this builder from an existing prototype instance.from(ObserverConfigBase.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.name()Name of this observer.Name of this observer.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault TracingObserverget()default TracingObserverConfig.Builderidentity()Instance of this builder as the correct type.default TracingObserverConfig.Builderupdate(Consumer<TracingObserverConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault TracingObserverConfig.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<TracingObserverConfig.Builder, TracingObserverConfig>- 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<TracingObserverConfig.Builder, TracingObserver>- Returns:
- instance of the built type
-