Class AutoHttpMetricsPathConfig.BuilderBase<BUILDER extends AutoHttpMetricsPathConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends AutoHttpMetricsPathConfig>
java.lang.Object
io.helidon.webserver.observe.metrics.AutoHttpMetricsPathConfig.BuilderBase<BUILDER, PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER, PROTOTYPE>, ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
- Direct Known Subclasses:
AutoHttpMetricsPathConfig.Builder
- Enclosing interface:
AutoHttpMetricsPathConfig
public abstract static class AutoHttpMetricsPathConfig.BuilderBase<BUILDER extends AutoHttpMetricsPathConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends AutoHttpMetricsPathConfig>
extends Object
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
Fluent API builder base for
AutoHttpMetricsPathConfig.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExact, case-sensitive HTTP methods for which this path config applies; default is to match all HTTP methods.addMethods(List<String> methods) Exact, case-sensitive HTTP methods for which this path config applies; default is to match all HTTP methods.Clear all methods.config()Configuration used to configure this instance.Update builder from configuration (node of this type).booleanenabled()Whether automatic metrics are to be enabled for requests which match the specifiedPathMatcherand HTTP methods.enabled(boolean enabled) Whether automatic metrics are to be enabled for requests which match the specifiedPathMatcherand HTTP methods.from(AutoHttpMetricsPathConfig prototype) Update this builder from an existing prototype instance.from(AutoHttpMetricsPathConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.methods()Exact, case-sensitive HTTP methods for which this path config applies; default is to match all HTTP methods.Exact, case-sensitive HTTP methods for which this path config applies; default is to match all HTTP methods.path()Path matching expression for this path config entry.Path matching expression for this path config entry.protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends AutoHttpMetricsPathConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends AutoHttpMetricsPathConfig>- Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
enabled
Whether automatic metrics are to be enabled for requests which match the specifiedPathMatcherand HTTP methods.- Parameters:
enabled- whether auto metrics are to be enabled for this path config's path matcher and HTTP methods- Returns:
- updated builder instance
- See Also:
-
path
-
clearMethods
-
methods
-
addMethods
-
addMethod
-
enabled
public boolean enabled()Whether automatic metrics are to be enabled for requests which match the specifiedPathMatcherand HTTP methods.- Returns:
- whether auto metrics are to be enabled for this path config's path matcher and HTTP methods
-
path
-
methods
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties. -
config
-