T - the type parameterpublic interface Configuration<T>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addConfigListener(String dataId,
T listener)
Add config listener.
|
boolean |
getBoolean(String dataId)
Gets boolean.
|
boolean |
getBoolean(String dataId,
boolean defaultValue)
Gets boolean.
|
boolean |
getBoolean(String dataId,
boolean defaultValue,
long timeoutMills)
Gets boolean.
|
String |
getConfig(String dataId)
Gets config.
|
String |
getConfig(String dataId,
long timeoutMills)
Gets config.
|
String |
getConfig(String dataId,
String defaultValue)
Gets config.
|
String |
getConfig(String dataId,
String defaultValue,
long timeoutMills)
Gets config.
|
List<T> |
getConfigListeners(String dataId)
Gets config listeners.
|
int |
getInt(String dataId)
Gets int.
|
int |
getInt(String dataId,
int defaultValue)
Gets int.
|
int |
getInt(String dataId,
int defaultValue,
long timeoutMills)
Gets int.
|
long |
getLong(String dataId)
Gets long.
|
long |
getLong(String dataId,
long defaultValue)
Gets long.
|
long |
getLong(String dataId,
long defaultValue,
long timeoutMills)
Gets long.
|
boolean |
putConfig(String dataId,
String content)
Put config boolean.
|
boolean |
putConfig(String dataId,
String content,
long timeoutMills)
Put config boolean.
|
boolean |
putConfigIfAbsent(String dataId,
String content)
Put config if absent boolean.
|
boolean |
putConfigIfAbsent(String dataId,
String content,
long timeoutMills)
Put config if absent boolean.
|
boolean |
removeConfig(String dataId)
Remove config boolean.
|
boolean |
removeConfig(String dataId,
long timeoutMills)
Remove config boolean.
|
void |
removeConfigListener(String dataId,
T listener)
Remove config listener.
|
int 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 idboolean 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 millsboolean putConfig(String dataId, String content, long timeoutMills)
dataId - the data idcontent - the contenttimeoutMills - 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, T listener)
dataId - the data idlistener - the listenervoid removeConfigListener(String dataId, T listener)
dataId - the data idlistener - the listenerCopyright © 2019 Seata. All rights reserved.