public abstract class ConfigDiscoveryConfiguration extends Object implements Toggleable
| Modifier and Type | Class and Description | 
|---|---|
| static class  | ConfigDiscoveryConfiguration.FormatThe format the configuration is stored in. | 
| Modifier and Type | Field and Description | 
|---|---|
| static boolean | DEFAULT_ENABLEDThe default enable value. | 
| static String | DEFAULT_PATHThe default path. | 
| static String | PREFIXThe 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 Toggleablepublic 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