Class ObserveSupport.Builder

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 Details

    • build

      public ObserveSupport build()
      Specified by:
      build in interface io.helidon.common.Builder<ObserveSupport.Builder,ObserveSupport>
    • useSystemServices

      public ObserveSupport.Builder useSystemServices(boolean useServices)
      Whether to use services discovered by ServiceLoader.
      Parameters:
      useServices - set to false to disable discovery
      Returns:
      updated builder
    • addProvider

      public ObserveSupport.Builder addProvider(ObserveProvider provider)
      Add a provider.
      Parameters:
      provider - provider to use
      Returns:
      updated builder
    • config

      public ObserveSupport.Builder config(io.helidon.config.Config config)
      Update this builder from configuration.
      Parameters:
      config - config on the node of observe support
      Returns:
      updated builder
    • corsSupport

      public ObserveSupport.Builder corsSupport(CorsSupport cors)
      Cors support inherited by each observe provider, unless explicitly configured.
      Parameters:
      cors - cors support to use
      Returns:
      updated builder
    • enabled

      public ObserveSupport.Builder enabled(boolean enabled)
      Whether the observe support is enabled.
      Parameters:
      enabled - set to false to disable observe feature
      Returns:
      updated builder
    • endpoint

      public ObserveSupport.Builder endpoint(String 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 is health (relative), health endpoint would be /observe/health.

      Parameters:
      endpoint - endpoint to use
      Returns:
      updated builder