public interface ConfigService
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(String dataId,
String group,
Listener listener)
Add a listener to the configuration, after the server to modify the configuration, the client will use the
incoming listener callback.
|
String |
getConfig(String dataId,
String group,
long timeoutMs)
Get Configuration
|
String |
getServerStatus()
server health info
|
boolean |
publishConfig(String dataId,
String group,
String content)
publish config.
|
boolean |
removeConfig(String dataId,
String group)
Remove Config
|
void |
removeListener(String dataId,
String group,
Listener listener)
Remove Listener
|
String getConfig(String dataId, String group, long timeoutMs) throws NacosException
dataId - Config IDgroup - Config GrouptimeoutMs - read timeoutNacosException - NacosExceptionvoid addListener(String dataId, String group, Listener listener) throws NacosException
dataId - Config IDgroup - Config Grouplistener - listenerNacosException - NacosExceptionboolean publishConfig(String dataId, String group, String content) throws NacosException
dataId - Config IDgroup - Config Groupcontent - Config ContentNacosException - NacosExceptionboolean removeConfig(String dataId, String group) throws NacosException
dataId - Config IDgroup - Config GroupNacosException - NacosExceptionvoid removeListener(String dataId, String group, Listener listener)
dataId - Config IDgroup - Config Grouplistener - listenerString getServerStatus()
Copyright © 2018 Alibaba Group. All rights reserved.