public class NacosConfiguration extends AbstractConfiguration
| Modifier and Type | Class and Description |
|---|---|
static class |
NacosConfiguration.NacosListener
Non-blocking subscriptions prohibit adding subscriptions in the thread pool to prevent thread termination
|
DEFAULT_BOOLEAN, DEFAULT_CONFIG_TIMEOUT, DEFAULT_DURATION, DEFAULT_INT, DEFAULT_LONG, DEFAULT_SHORTENV_MAP| Modifier and Type | Method and Description |
|---|---|
void |
addConfigListener(String dataId,
ConfigurationChangeListener listener) |
Set<ConfigurationChangeListener> |
getConfigListeners(String dataId) |
static NacosConfiguration |
getInstance()
Get instance of NacosConfiguration
|
String |
getLatestConfig(String dataId,
String defaultValue,
long timeoutMills) |
static String |
getNacosAccessKey() |
static String |
getNacosAddrFileKey() |
static String |
getNacosDataIdKey() |
static String |
getNacosGroupKey() |
static String |
getNacosNameSpaceFileKey() |
static String |
getNacosPassword() |
static String |
getNacosSecretKey() |
static String |
getNacosUserName() |
String |
getTypeName() |
boolean |
putConfig(String dataId,
String content,
long timeoutMills) |
boolean |
putConfigIfAbsent(String dataId,
String content,
long timeoutMills) |
boolean |
removeConfig(String dataId,
long timeoutMills) |
void |
removeConfigListener(String dataId,
ConfigurationChangeListener 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, waitgetConfigFromSyspublic static NacosConfiguration getInstance()
public String getLatestConfig(String dataId, String defaultValue, long timeoutMills)
public boolean putConfigIfAbsent(String dataId, String content, long timeoutMills)
public boolean removeConfig(String dataId, long timeoutMills)
public void addConfigListener(String dataId, ConfigurationChangeListener listener)
public void removeConfigListener(String dataId, ConfigurationChangeListener listener)
public Set<ConfigurationChangeListener> getConfigListeners(String dataId)
public static String getNacosNameSpaceFileKey()
public static String getNacosAddrFileKey()
public static String getNacosGroupKey()
public static String getNacosDataIdKey()
public static String getNacosUserName()
public static String getNacosPassword()
public static String getNacosAccessKey()
public static String getNacosSecretKey()
public String getTypeName()
getTypeName in class AbstractConfigurationCopyright © 2023 Seata. All rights reserved.