Class AutoHttpMetricsConfig.Builder
java.lang.Object
io.helidon.webserver.observe.metrics.AutoHttpMetricsConfig.BuilderBase<AutoHttpMetricsConfig.Builder, AutoHttpMetricsConfig>
io.helidon.webserver.observe.metrics.AutoHttpMetricsConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<AutoHttpMetricsConfig.Builder, AutoHttpMetricsConfig>, Builder<AutoHttpMetricsConfig.Builder, AutoHttpMetricsConfig>, ConfigBuilderSupport.ConfiguredBuilder<AutoHttpMetricsConfig.Builder, AutoHttpMetricsConfig>, Supplier<AutoHttpMetricsConfig>
- Enclosing interface:
AutoHttpMetricsConfig
public static class AutoHttpMetricsConfig.Builder
extends AutoHttpMetricsConfig.BuilderBase<AutoHttpMetricsConfig.Builder, AutoHttpMetricsConfig>
implements Builder<AutoHttpMetricsConfig.Builder, AutoHttpMetricsConfig>
Fluent API builder for
AutoHttpMetricsConfig.-
Nested Class Summary
Nested classes/interfaces inherited from class AutoHttpMetricsConfig.BuilderBase
AutoHttpMetricsConfig.BuilderBase.AutoHttpMetricsConfigImplModifier 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 AutoHttpMetricsConfig.BuilderBase
addKnownMethod, addKnownMethods, addOptIn, addPath, addPath, addPaths, addSockets, clearKnownMethods, clearOptIn, clearPaths, clearSockets, config, config, enabled, enabled, from, from, knownMethods, knownMethods, optIn, optIn, paths, paths, preBuildPrototype, sockets, sockets, toString, useUpdatedHttpMetrics, useUpdatedHttpMetrics, validatePrototypeModifier and TypeMethodDescriptionaddKnownMethod(String knownMethod) Exact, case-sensitive HTTP methods to be used in the HTTP method tag for automatic metrics, defaulted to the standard HTTP methods; assigning this value fully replaces the set of method names.addKnownMethods(List<String> knownMethods) Exact, case-sensitive HTTP methods to be used in the HTTP method tag for automatic metrics, defaulted to the standard HTTP methods; assigning this value fully replaces the set of method names.Elective attribute for which to opt in.Automatic metrics collection settings.addPath(Consumer<AutoHttpMetricsPathConfig.Builder> consumer) Automatic metrics collection settings.addPaths(List<? extends AutoHttpMetricsPathConfig> paths) Automatic metrics collection settings.addSockets(Set<String> sockets) Socket names for sockets to be instrumented with automatic metrics.Clear all knownMethods.Clear all optIn.Clear all paths.Clear all sockets.config()Configuration used to configure this instance.Update builder from configuration (node of this type).booleanenabled()Whether automatic metrics collection as a whole is enabled.enabled(boolean enabled) Whether automatic metrics collection as a whole is enabled.from(AutoHttpMetricsConfig prototype) Update this builder from an existing prototype instance.from(AutoHttpMetricsConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Exact, case-sensitive HTTP methods to be used in the HTTP method tag for automatic metrics, defaulted to the standard HTTP methods; assigning this value fully replaces the set of method names.knownMethods(List<String> knownMethods) Exact, case-sensitive HTTP methods to be used in the HTTP method tag for automatic metrics, defaulted to the standard HTTP methods; assigning this value fully replaces the set of method names.optIn()Elective attribute for which to opt in.Elective attribute for which to opt in.paths()Automatic metrics collection settings.paths(List<? extends AutoHttpMetricsPathConfig> paths) Automatic metrics collection settings.protected voidHandles providers and decorators.sockets()Socket names for sockets to be instrumented with automatic metrics.Socket names for sockets to be instrumented with automatic metrics.toString()booleanDeprecated.This option is ignored and will be removed in a future release.useUpdatedHttpMetrics(boolean useUpdatedHttpMetrics) Deprecated.This option is ignored and will be removed in a future release.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 AutoHttpMetricsConfigget()default AutoHttpMetricsConfig.Builderidentity()Instance of this builder as the correct type.default AutoHttpMetricsConfig.Builderupdate(Consumer<AutoHttpMetricsConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault AutoHttpMetricsConfig.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<AutoHttpMetricsConfig.Builder, AutoHttpMetricsConfig>- 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<AutoHttpMetricsConfig.Builder, AutoHttpMetricsConfig>- Returns:
- instance of the built type
-