public abstract class ConfigDiscoveryConfiguration extends java.lang.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 java.lang.String |
DEFAULT_PATH
The default path.
|
static java.lang.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() |
java.util.Optional<java.lang.String> |
getPath() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Default value (true).
|
void |
setFormat(ConfigDiscoveryConfiguration.Format format) |
void |
setPath(java.lang.String path) |
public static final java.lang.String PREFIX
public static final java.lang.String DEFAULT_PATH
public static final boolean DEFAULT_ENABLED
public boolean isEnabled()
isEnabled in interface Toggleablepublic void setEnabled(boolean enabled)
enabled - Enable the distributed configurationpublic java.util.Optional<java.lang.String> getPath()
public void setPath(java.lang.String path)
path - The path to store the configurationpublic ConfigDiscoveryConfiguration.Format getFormat()
public void setFormat(ConfigDiscoveryConfiguration.Format format)
format - The configuration format