java.lang.Object
io.helidon.nima.observe.ObserveFeature.Builder
- All Implemented Interfaces:
Builder<ObserveFeature.Builder,,ObserveFeature> Supplier<ObserveFeature>
- Enclosing class:
ObserveFeature
public static class ObserveFeature.Builder
extends Object
implements Builder<ObserveFeature.Builder,ObserveFeature>
Fluent API builder for
ObserveFeature.-
Method Summary
Modifier and TypeMethodDescriptionaddProvider(ObserveProvider provider) Add a provider.build()Build the instance from this builder.Update this builder from configuration.corsSupport(CorsSupport cors) Cors support inherited by each observe provider, unless explicitly configured.enabled(boolean enabled) Whether the observe support is enabled.Root endpoint to use for observe providers.useSystemServices(boolean useServices) Whether to use services discovered byServiceLoader.
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<ObserveFeature.Builder,ObserveFeature> - Returns:
- instance of the built type
-
useSystemServices
Whether to use services discovered byServiceLoader.- Parameters:
useServices- set tofalseto disable discovery- Returns:
- updated builder
-
addProvider
Add a provider.- Parameters:
provider- provider to use- Returns:
- updated builder
-
config
Update this builder from configuration.- Parameters:
config- config on the node of observe support- Returns:
- updated builder
-
corsSupport
Cors support inherited by each observe provider, unless explicitly configured.- Parameters:
cors- cors support to use- Returns:
- updated builder
-
enabled
Whether the observe support is enabled.- Parameters:
enabled- set tofalseto disable observe feature- Returns:
- updated builder
-
endpoint
Root endpoint to use for observe providers. By default all observe endpoint are under this root endpoint.Example:
If root endpoint is/observe(the default), and default health endpoint ishealth(relative), health endpoint would be/observe/health.- Parameters:
endpoint- endpoint to use- Returns:
- updated builder
-