Package io.micronaut.discovery.config
Class ConfigDiscoveryConfiguration
java.lang.Object
io.micronaut.discovery.config.ConfigDiscoveryConfiguration
- All Implemented Interfaces:
Toggleable
Abstract class for common configuration discovery settings.
- Since:
- 1.0
- Author:
- graemerocher
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe format the configuration is stored in. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPath()booleanvoidsetEnabled(boolean enabled) Default value (true).voidvoid
-
Field Details
-
PREFIX
The prefix to use for all Consul client config settings.- See Also:
-
DEFAULT_PATH
The default path.- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
-
Constructor Details
-
ConfigDiscoveryConfiguration
public ConfigDiscoveryConfiguration()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceToggleable- Returns:
- Is distributed configuration enabled. True if it is.
-
setEnabled
public void setEnabled(boolean enabled) Default value (true).- Parameters:
enabled- Enable the distributed configuration
-
getPath
- Returns:
- The path where the configuration is stored
-
setPath
- Parameters:
path- The path to store the configuration
-
getFormat
- Returns:
- The configuration format
-
setFormat
- Parameters:
format- The configuration format
-