- All Superinterfaces:
io.helidon.common.Builder<RegistrySettings.Builder,,RegistrySettings> Supplier<RegistrySettings>
- Enclosing interface:
RegistrySettings
public static interface RegistrySettings.Builder
extends io.helidon.common.Builder<RegistrySettings.Builder,RegistrySettings>
Builder for
RegistrySettings.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConfig key within the registry's config section controlling whether the current type of metrics should be enabled.static final StringConfig key within the registry's config section specifying a filter.static final StringConfig key within the registry's config section identifying which registry type the settings apply to. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a newRegistrySettingsinstance from the builder.Sets values in the builder based on the providedConfignode.enabled(boolean value) Sets whether the metric type should be enabled.filterSettings(RegistryFilterSettings.Builder registryFilterSettingsBuilder) Sets the filter to use for identifying specific metrics to enable.booleanMethods inherited from interface io.helidon.common.Builder
get, identity, update
-
Field Details
-
ENABLED_CONFIG_KEY
Config key within the registry's config section controlling whether the current type of metrics should be enabled.- See Also:
-
FILTER_CONFIG_KEY
Config key within the registry's config section specifying a filter.- See Also:
-
TYPE_CONFIG_KEY
Config key within the registry's config section identifying which registry type the settings apply to.- See Also:
-
-
Method Details
-
enabled
Sets whether the metric type should be enabled.- Parameters:
value- true if metric type should be enabled; false otherwise- Returns:
- updated builder
-
filterSettings
RegistrySettings.Builder filterSettings(RegistryFilterSettings.Builder registryFilterSettingsBuilder) Sets the filter to use for identifying specific metrics to enable.- Parameters:
registryFilterSettingsBuilder-Stringspecifying enabled and disabled metric name patterns- Returns:
- updated builder
-
config
Sets values in the builder based on the providedConfignode.- Parameters:
registrySettings-Confignode containing settings for the registry type- Returns:
- updated builder
-
isEnabled
boolean isEnabled()- Returns:
- builder's current setting for whether metrics in the relevant registry are to be used
-
build
RegistrySettings build()Creates a newRegistrySettingsinstance from the builder.- Specified by:
buildin interfaceio.helidon.common.Builder<RegistrySettings.Builder,RegistrySettings> - Returns:
- new instance from the builder
-