@Deprecated public interface Configuration
| Modifier and Type | Field and Description |
|---|---|
static Map<String,String> |
ENV_MAP
Deprecated.
The Env map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConfigListener(String dataId,
ConfigurationChangeListener listener)
Deprecated.
Add config listener.
|
boolean |
getBoolean(String dataId)
Deprecated.
Gets boolean.
|
boolean |
getBoolean(String dataId,
boolean defaultValue)
Deprecated.
Gets boolean.
|
boolean |
getBoolean(String dataId,
boolean defaultValue,
long timeoutMills)
Deprecated.
Gets boolean.
|
String |
getConfig(String dataId)
Deprecated.
Gets config.
|
String |
getConfig(String dataId,
long timeoutMills)
Deprecated.
Gets config.
|
String |
getConfig(String dataId,
String defaultValue)
Deprecated.
Gets config.
|
String |
getConfig(String dataId,
String defaultValue,
long timeoutMills)
Deprecated.
Gets config.
|
default String |
getConfigFromSys(String dataId)
Deprecated.
Gets config from sys pro.
|
Set<ConfigurationChangeListener> |
getConfigListeners(String dataId)
Deprecated.
Gets config listeners.
|
Duration |
getDuration(String dataId)
Deprecated.
Gets duration.
|
Duration |
getDuration(String dataId,
Duration defaultValue)
Deprecated.
Gets duration.
|
Duration |
getDuration(String dataId,
Duration defaultValue,
long timeoutMills)
Deprecated.
Gets duration.
|
int |
getInt(String dataId)
Deprecated.
Gets int.
|
int |
getInt(String dataId,
int defaultValue)
Deprecated.
Gets int.
|
int |
getInt(String dataId,
int defaultValue,
long timeoutMills)
Deprecated.
Gets int.
|
String |
getLatestConfig(String dataId,
String defaultValue,
long timeoutMills)
Deprecated.
Get latest config.
|
long |
getLong(String dataId)
Deprecated.
Gets long.
|
long |
getLong(String dataId,
long defaultValue)
Deprecated.
Gets long.
|
long |
getLong(String dataId,
long defaultValue,
long timeoutMills)
Deprecated.
Gets long.
|
short |
getShort(String dataId)
Deprecated.
Gets short.
|
short |
getShort(String dataId,
short defaultValue)
Deprecated.
Gets short.
|
short |
getShort(String dataId,
short defaultValue,
long timeoutMills)
Deprecated.
Gets short.
|
boolean |
putConfig(String dataId,
String content)
Deprecated.
Put config boolean.
|
boolean |
putConfig(String dataId,
String content,
long timeoutMills)
Deprecated.
Put config boolean.
|
boolean |
putConfigIfAbsent(String dataId,
String content)
Deprecated.
Put config if absent boolean.
|
boolean |
putConfigIfAbsent(String dataId,
String content,
long timeoutMills)
Deprecated.
Put config if absent boolean.
|
boolean |
removeConfig(String dataId)
Deprecated.
Remove config boolean.
|
boolean |
removeConfig(String dataId,
long timeoutMills)
Deprecated.
Remove config boolean.
|
void |
removeConfigListener(String dataId,
ConfigurationChangeListener listener)
Deprecated.
Remove config listener.
|
short getShort(String dataId, short defaultValue, long timeoutMills)
dataId - the data iddefaultValue - the default valuetimeoutMills - the timeout millsshort getShort(String dataId, short defaultValue)
dataId - the data iddefaultValue - the default valueshort getShort(String dataId)
dataId - the data idint getInt(String dataId, int defaultValue, long timeoutMills)
dataId - the data iddefaultValue - the default valuetimeoutMills - the timeout millsint getInt(String dataId, int defaultValue)
dataId - the data iddefaultValue - the default valueint getInt(String dataId)
dataId - the data idlong getLong(String dataId, long defaultValue, long timeoutMills)
dataId - the data iddefaultValue - the default valuetimeoutMills - the timeout millslong getLong(String dataId, long defaultValue)
dataId - the data iddefaultValue - the default valuelong getLong(String dataId)
dataId - the data idDuration getDuration(String dataId)
dataId - the data idDuration getDuration(String dataId, Duration defaultValue)
dataId - the data iddefaultValue - the default valueDuration getDuration(String dataId, Duration defaultValue, long timeoutMills)
dataId - the data iddefaultValue - the default valuetimeoutMills - the timeout millsboolean getBoolean(String dataId, boolean defaultValue, long timeoutMills)
dataId - the data iddefaultValue - the default valuetimeoutMills - the timeout millsboolean getBoolean(String dataId, boolean defaultValue)
dataId - the data iddefaultValue - the default valueboolean getBoolean(String dataId)
dataId - the data idString getConfig(String dataId, String defaultValue, long timeoutMills)
dataId - the data iddefaultValue - the default valuetimeoutMills - the timeout millsString getConfig(String dataId, String defaultValue)
dataId - the data iddefaultValue - the default valueString getConfig(String dataId, long timeoutMills)
dataId - the data idtimeoutMills - the timeout millsString getConfig(String dataId)
dataId - the data idboolean putConfig(String dataId, String content, long timeoutMills)
dataId - the data idcontent - the contenttimeoutMills - the timeout millsString getLatestConfig(String dataId, String defaultValue, long timeoutMills)
dataId - the data iddefaultValue - the default valuetimeoutMills - the timeout millsboolean putConfig(String dataId, String content)
dataId - the data idcontent - the contentboolean putConfigIfAbsent(String dataId, String content, long timeoutMills)
dataId - the data idcontent - the contenttimeoutMills - the timeout millsboolean putConfigIfAbsent(String dataId, String content)
dataId - the data idcontent - the contentboolean removeConfig(String dataId, long timeoutMills)
dataId - the data idtimeoutMills - the timeout millsboolean removeConfig(String dataId)
dataId - the data idvoid addConfigListener(String dataId, ConfigurationChangeListener listener)
dataId - the data idlistener - the listenervoid removeConfigListener(String dataId, ConfigurationChangeListener listener)
dataId - the data idlistener - the listenerSet<ConfigurationChangeListener> getConfigListeners(String dataId)
dataId - the data idCopyright © 2025 Apache. All rights reserved.