| 程序包 | 说明 |
|---|---|
| com.alibaba.nacos.api.config | |
| com.alibaba.nacos.api.config.listener |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ConfigService.addListener(String dataId,
String group,
Listener listener)
Add a listener to the configuration, after the server modified the configuration, the client will use the
incoming listener callback.
|
String |
ConfigService.getConfigAndSignListener(String dataId,
String group,
long timeoutMs,
Listener listener)
Get config and register Listener.
|
void |
ConfigService.removeListener(String dataId,
String group,
Listener listener)
Remove listener.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractListener
Listener Adapter,use default notify thread.
|
class |
AbstractSharedListener
Shared Listener.
|
Copyright © 2018–2021 Alibaba Group. All rights reserved.