Package io.helidon.metrics.serviceapi
Interface MetricsSupport.Builder<B extends MetricsSupport.Builder<B,T>,T extends MetricsSupport>
- Type Parameters:
B
- builder typeT
- specific implementation type ofMetricsSupport
- 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 Summary
Modifier and TypeMethodDescriptionbuild()
Returns the newMetricsSupport
instance according to the builder's settings.metricsSettings
(MetricsSettings.Builder metricsSettingsBuilder) AssignsMetricsSettings
which will be used in creating theMetricsSupport
instance at build-time.restServiceSettings
(RestServiceSettings.Builder restServiceSettingsBuilder) Set the REST service settings.
-
Method Details
-
build
T build()Returns the newMetricsSupport
instance according to the builder's settings.- Specified by:
build
in interfaceBuilder<B extends MetricsSupport.Builder<B,
T>, T extends MetricsSupport> - Returns:
- the new metrics support
-
metricsSettings
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
Set the REST service settings.- Parameters:
restServiceSettingsBuilder
- REST service settings to use- Returns:
- updated builder
-