Interface MetricsSupport.Builder<B extends MetricsSupport.Builder<B,T>,T extends MetricsSupport>

Type Parameters:
B - builder type
T - specific implementation type of MetricsSupport
All Superinterfaces:
Builder<B,T>, Supplier<T>
All Known Implementing Classes:
MetricsSupport.Builder
Enclosing interface:
MetricsSupport

public static interface MetricsSupport.Builder<B extends MetricsSupport.Builder<B,T>,T extends MetricsSupport> extends Builder<B,T>
Builder for MetricsSupport.

Callers can influence how MetricsSupport behaves by assigning MetricsSettings.

  • Method Details

    • build

      T build()
      Returns the new MetricsSupport instance according to the builder's settings.
      Specified by:
      build in interface Builder<B extends MetricsSupport.Builder<B,T>,T extends MetricsSupport>
      Returns:
      the new metrics support
    • metricsSettings

      B metricsSettings(MetricsSettings.Builder metricsSettingsBuilder)
      Assigns MetricsSettings which will be used in creating the MetricsSupport instance at build-time.
      Parameters:
      metricsSettingsBuilder - the metrics settings to assign for use in building the MetricsSupport instance
      Returns:
      updated builder
    • restServiceSettings

      B restServiceSettings(RestServiceSettings.Builder restServiceSettingsBuilder)
      Set the REST service settings.
      Parameters:
      restServiceSettingsBuilder - REST service settings to use
      Returns:
      updated builder