Package io.helidon.metrics.serviceapi
Interface MetricsSupport.Builder<T extends MetricsSupport>
-
- Type Parameters:
T
- specific implementation type ofMetricsSupport
- All Known Implementing Classes:
MetricsSupport.Builder
- Enclosing interface:
- MetricsSupport
public static interface MetricsSupport.Builder<T extends MetricsSupport> extends Builder<T>
Builder forMetricsSupport
.Callers can influence how
MetricsSupport
behaves by assigningMetricsSettings
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
build()
Returns the newMetricsSupport
instance according to the builder's settings.MetricsSupport.Builder<T>
metricsSettings(MetricsSettings.Builder metricsSettingsBuilder)
AssignsMetricsSettings
which will be used in creating theMetricsSupport
instance at build-time.MetricsSupport.Builder<T>
restServiceSettings(RestServiceSettings.Builder restServiceSettingsBuilder)
Set the REST service settings.
-
-
-
Method Detail
-
build
T build()
Returns the newMetricsSupport
instance according to the builder's settings.- Specified by:
build
in interfaceBuilder<T extends MetricsSupport>
- Returns:
- the new metrics support
-
metricsSettings
MetricsSupport.Builder<T> metricsSettings(MetricsSettings.Builder metricsSettingsBuilder)
AssignsMetricsSettings
which will be used in creating theMetricsSupport
instance at build-time.- Parameters:
metricsSettingsBuilder
- the metrics settings to assign for use in building theMetricsSupport
instance- Returns:
- updated builder
-
restServiceSettings
MetricsSupport.Builder<T> restServiceSettings(RestServiceSettings.Builder restServiceSettingsBuilder)
Set the REST service settings.- Parameters:
restServiceSettingsBuilder
- REST service settings to use- Returns:
- updated builder
-
-