T - the type parameterpublic abstract class AbstractConfiguration<T> extends Object implements Configuration<T>
| 限定符和类型 | 字段和说明 |
|---|---|
protected static long |
DEFAULT_CONFIG_TIMEOUT
The constant DEFAULT_CONFIG_TIMEOUT.
|
| 构造器和说明 |
|---|
AbstractConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
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.
|
abstract String |
getTypeName()
Gets type name.
|
boolean |
putConfig(String dataId,
String content)
Put config boolean.
|
boolean |
putConfigIfAbsent(String dataId,
String content)
Put config if absent boolean.
|
boolean |
removeConfig(String dataId)
Remove config boolean.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddConfigListener, getConfig, getConfigListeners, putConfig, putConfigIfAbsent, removeConfig, removeConfigListenerprotected static final long DEFAULT_CONFIG_TIMEOUT
public int getInt(String dataId, int defaultValue, long timeoutMills)
ConfigurationgetInt 在接口中 Configuration<T>dataId - the data iddefaultValue - the default valuetimeoutMills - the timeout millspublic int getInt(String dataId, int defaultValue)
ConfigurationgetInt 在接口中 Configuration<T>dataId - the data iddefaultValue - the default valuepublic int getInt(String dataId)
ConfigurationgetInt 在接口中 Configuration<T>dataId - the data idpublic long getLong(String dataId, long defaultValue, long timeoutMills)
ConfigurationgetLong 在接口中 Configuration<T>dataId - the data iddefaultValue - the default valuetimeoutMills - the timeout millspublic long getLong(String dataId, long defaultValue)
ConfigurationgetLong 在接口中 Configuration<T>dataId - the data iddefaultValue - the default valuepublic long getLong(String dataId)
ConfigurationgetLong 在接口中 Configuration<T>dataId - the data idpublic boolean getBoolean(String dataId, boolean defaultValue, long timeoutMills)
ConfigurationgetBoolean 在接口中 Configuration<T>dataId - the data iddefaultValue - the default valuetimeoutMills - the timeout millspublic boolean getBoolean(String dataId, boolean defaultValue)
ConfigurationgetBoolean 在接口中 Configuration<T>dataId - the data iddefaultValue - the default valuepublic boolean getBoolean(String dataId)
ConfigurationgetBoolean 在接口中 Configuration<T>dataId - the data idpublic String getConfig(String dataId, String defaultValue)
ConfigurationgetConfig 在接口中 Configuration<T>dataId - the data iddefaultValue - the default valuepublic String getConfig(String dataId, long timeoutMills)
ConfigurationgetConfig 在接口中 Configuration<T>dataId - the data idtimeoutMills - the timeout millspublic String getConfig(String dataId)
ConfigurationgetConfig 在接口中 Configuration<T>dataId - the data idpublic boolean putConfig(String dataId, String content)
ConfigurationputConfig 在接口中 Configuration<T>dataId - the data idcontent - the contentpublic boolean putConfigIfAbsent(String dataId, String content)
ConfigurationputConfigIfAbsent 在接口中 Configuration<T>dataId - the data idcontent - the contentpublic boolean removeConfig(String dataId)
ConfigurationremoveConfig 在接口中 Configuration<T>dataId - the data idpublic abstract String getTypeName()
Copyright © 2019 Seata. All rights reserved.