| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_ROUTE_PREFIX |
| Constructor and Description |
|---|
ConsulSpConfig(String serviceName) |
ConsulSpConfig(String serviceName,
SpConfigChangeCallback callback) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(String key) |
ConfigItem |
getConfigItem(String key) |
double |
getDouble(String key) |
int |
getInteger(String key) |
String |
getString(String key) |
void |
register(String key,
boolean defaultValue,
String description) |
void |
register(String key,
double defaultValue,
String description) |
void |
register(String key,
int defaultValue,
String description) |
void |
register(String key,
String defaultValue,
String description) |
<T> void |
register(String key,
T defaultValue,
String description,
ConfigurationScope configurationScope) |
void |
registerPassword(String key,
String defaultValue,
String description) |
void |
run() |
void |
setBoolean(String key,
Boolean value) |
void |
setDouble(String key,
double value) |
void |
setInteger(String key,
int value) |
void |
setString(String key,
String value) |
getSpConfig, getSpConfigpublic static final String SERVICE_ROUTE_PREFIX
public ConsulSpConfig(String serviceName)
public ConsulSpConfig(String serviceName, SpConfigChangeCallback callback)
public <T> void register(String key, T defaultValue, String description, ConfigurationScope configurationScope)
public void registerPassword(String key, String defaultValue, String description)
registerPassword in class SpConfigpublic boolean getBoolean(String key)
getBoolean in class SpConfigpublic int getInteger(String key)
getInteger in class SpConfigpublic ConfigItem getConfigItem(String key)
getConfigItem in class SpConfigpublic void setBoolean(String key, Boolean value)
setBoolean in class SpConfigpublic void setInteger(String key, int value)
setInteger in class SpConfigCopyright © 2018. All rights reserved.