java.lang.Object
io.helidon.nima.observe.ObserveSupport.Builder
- All Implemented Interfaces:
io.helidon.common.Builder<ObserveSupport.Builder,,ObserveSupport> Supplier<ObserveSupport>
- Enclosing class:
ObserveSupport
public static class ObserveSupport.Builder
extends Object
implements io.helidon.common.Builder<ObserveSupport.Builder,ObserveSupport>
Fluent API builder for
ObserveSupport.-
Method Summary
Modifier and TypeMethodDescriptionaddProvider(ObserveProvider provider) Add a provider.build()config(io.helidon.config.Config config) 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.common.Builder
get, identity, update
-
Method Details
-
build
- Specified by:
buildin interfaceio.helidon.common.Builder<ObserveSupport.Builder,ObserveSupport>
-
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
-