Class HealthObserverConfig.Builder
java.lang.Object
io.helidon.webserver.observe.ObserverConfigBase.BuilderBase<HealthObserverConfig.Builder, HealthObserverConfig>
io.helidon.webserver.observe.health.HealthObserverConfig.BuilderBase<HealthObserverConfig.Builder, HealthObserverConfig>
io.helidon.webserver.observe.health.HealthObserverConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<HealthObserverConfig.Builder, HealthObserverConfig>, Builder<HealthObserverConfig.Builder, HealthObserver>, ConfigBuilderSupport.ConfiguredBuilder<HealthObserverConfig.Builder, HealthObserverConfig>, Supplier<HealthObserver>
- Enclosing interface:
HealthObserverConfig
public static class HealthObserverConfig.Builder
extends HealthObserverConfig.BuilderBase<HealthObserverConfig.Builder, HealthObserverConfig>
implements Builder<HealthObserverConfig.Builder, HealthObserver>
Fluent API builder for
HealthObserver.-
Nested Class Summary
Nested classes/interfaces inherited from class HealthObserverConfig.BuilderBase
HealthObserverConfig.BuilderBase.HealthObserverConfigImplModifier 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 HealthObserverConfig.BuilderBase
addCheck, addCheck, addCheck, addChecks, addExclude, addExcluded, addHealthChecks, clearExclude, clearHealthChecks, config, details, details, endpoint, endpoint, exclude, exclude, from, from, healthChecks, healthChecks, preBuildPrototype, toString, useSystemServices, useSystemServices, validatePrototypeModifier and TypeMethodDescriptionaddCheck(HealthCheck check) Health checks with implicit types.addCheck(HealthCheck check, HealthCheckType type) Add the provided health check using an explicit type (may differ from theHealthCheck.type().addCheck(Supplier<HealthCheckResponse> responseSupplier, HealthCheckType type, String name) Add a health check using the provided response supplier, type, and name.addChecks(HealthCheck[] checks) Add the provided health checks.addExclude(List<String> exclude) Health check names to exclude in computing the overall health of the server.addExcluded(String excluded) Health check names to exclude in computing the overall health of the server.addHealthChecks(List<? extends HealthCheck> healthChecks) Health checks with implicit types.Clear all exclude.Clear all healthChecks.Update builder from configuration (node of this type).booleandetails()Whether details should be printed.details(boolean details) Whether details should be printed.endpoint()Endpoint option.Endpoint option.exclude()Health check names to exclude in computing the overall health of the server.Health check names to exclude in computing the overall health of the server.from(HealthObserverConfig prototype) Update this builder from an existing prototype instance.from(HealthObserverConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Health checks with implicit types.healthChecks(List<? extends HealthCheck> healthChecks) Health checks with implicit types.protected voidHandles providers and decorators.toString()booleanWhether to use discovered health-check services.useSystemServices(boolean useSystemServices) Whether to use discovered health-check services.protected voidValidates required properties.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 HealthObserverget()default HealthObserverConfig.Builderidentity()Instance of this builder as the correct type.default HealthObserverConfig.Builderupdate(Consumer<HealthObserverConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault HealthObserverConfig.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<HealthObserverConfig.Builder, HealthObserverConfig>- 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<HealthObserverConfig.Builder, HealthObserver>- Returns:
- instance of the built type
-