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
Modifier and TypeClassDescriptionstatic enum
The format the configuration is stored in. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPath()
boolean
void
setEnabled
(boolean enabled) Default value (true).void
void
-
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:
isEnabled
in 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
-