public abstract class ConfigDiscoveryConfiguration extends Object implements Toggleable
Modifier and Type | Class and Description |
---|---|
static class |
ConfigDiscoveryConfiguration.Format
The format the configuration is stored in.
|
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static String |
DEFAULT_PATH
The default path.
|
static String |
PREFIX
The prefix to use for all Consul client config settings.
|
Constructor and Description |
---|
ConfigDiscoveryConfiguration() |
Modifier and Type | Method and Description |
---|---|
ConfigDiscoveryConfiguration.Format |
getFormat() |
Optional<String> |
getPath() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Default value (true).
|
void |
setFormat(ConfigDiscoveryConfiguration.Format format) |
void |
setPath(String path) |
public static final String PREFIX
public static final String DEFAULT_PATH
public static final boolean DEFAULT_ENABLED
public boolean isEnabled()
isEnabled
in interface Toggleable
public void setEnabled(boolean enabled)
enabled
- Enable the distributed configurationpublic void setPath(String path)
path
- The path to store the configurationpublic ConfigDiscoveryConfiguration.Format getFormat()
public void setFormat(ConfigDiscoveryConfiguration.Format format)
format
- The configuration format