public class FileConfiguration extends AbstractConfiguration
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
SYS_FILE_RESOURCE_PREFIX |
DEFAULT_CONFIG_TIMEOUT| 构造器和说明 |
|---|
FileConfiguration()
Note that:this constructor is only used to create proxy with CGLIB
see io.seata.spring.boot.autoconfigure.provider.SpringBootConfigurationProvider#provide
|
FileConfiguration(String name)
Instantiates a new File configuration.
|
FileConfiguration(String name,
boolean allowDynamicRefresh)
Instantiates a new File configuration.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addConfigListener(String dataId,
ConfigurationChangeListener listener)
Add config listener.
|
Set<ConfigurationChangeListener> |
getConfigListeners(String dataId)
Gets config listeners.
|
String |
getLatestConfig(String dataId,
String defaultValue,
long timeoutMills) |
String |
getTypeName()
Gets type name.
|
boolean |
putConfig(String dataId,
String content,
long timeoutMills)
Put config boolean.
|
boolean |
putConfigIfAbsent(String dataId,
String content,
long timeoutMills)
Put config if absent boolean.
|
boolean |
removeConfig(String dataId,
long timeoutMills)
Remove config boolean.
|
void |
removeConfigListener(String dataId,
ConfigurationChangeListener listener)
Remove config listener.
|
getBoolean, getBoolean, getBoolean, getConfig, getConfig, getConfig, getConfig, getDuration, getDuration, getDuration, getInt, getInt, getInt, getLong, getLong, getLong, getShort, getShort, getShort, putConfig, putConfigIfAbsent, removeConfigclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigFromSysPropublic FileConfiguration()
public FileConfiguration(String name)
name - the namepublic FileConfiguration(String name, boolean allowDynamicRefresh)
name - the nameallowDynamicRefresh - the allow dynamic refreshpublic String getLatestConfig(String dataId, String defaultValue, long timeoutMills)
dataId - the data iddefaultValue - the default valuetimeoutMills - the timeout millspublic boolean putConfig(String dataId, String content, long timeoutMills)
ConfigurationdataId - the data idcontent - the contenttimeoutMills - the timeout millspublic boolean putConfigIfAbsent(String dataId, String content, long timeoutMills)
ConfigurationdataId - the data idcontent - the contenttimeoutMills - the timeout millspublic boolean removeConfig(String dataId, long timeoutMills)
ConfigurationdataId - the data idtimeoutMills - the timeout millspublic void addConfigListener(String dataId, ConfigurationChangeListener listener)
ConfigurationdataId - the data idlistener - the listenerpublic void removeConfigListener(String dataId, ConfigurationChangeListener listener)
ConfigurationdataId - the data idlistener - the listenerpublic Set<ConfigurationChangeListener> getConfigListeners(String dataId)
ConfigurationdataId - the data idpublic String getTypeName()
AbstractConfigurationgetTypeName 在类中 AbstractConfigurationCopyright © 2020 Seata. All rights reserved.