| 构造器和说明 |
|---|
ClientWorker(HttpAgent agent,
ConfigFilterChainManager configFilterChainManager,
Properties properties) |
| 限定符和类型 | 方法和说明 |
|---|---|
CacheData |
addCacheDataIfAbsent(String dataId,
String group,
String tenant)
Add cache data if absent.
|
void |
addTenantListeners(String dataId,
String group,
List<? extends Listener> listeners)
Add listeners for tenant.
|
void |
addTenantListenersWithContent(String dataId,
String group,
String content,
List<? extends Listener> listeners)
Add listeners for tenant with content.
|
void |
checkConfigInfo()
Check config info.
|
CacheData |
getCache(String dataId,
String group,
String tenant) |
ConfigResponse |
getServerConfig(String dataId,
String group,
String tenant,
long readTimeout) |
boolean |
isHealthServer() |
void |
removeTenantListener(String dataId,
String group,
Listener listener)
Remove listeners for tenant.
|
void |
shutdown() |
public ClientWorker(HttpAgent agent, ConfigFilterChainManager configFilterChainManager, Properties properties)
public void addTenantListeners(String dataId, String group, List<? extends Listener> listeners) throws NacosException
dataId - dataId of datagroup - group of datalisteners - listenersNacosException - nacos exceptionpublic void addTenantListenersWithContent(String dataId, String group, String content, List<? extends Listener> listeners) throws NacosException
dataId - dataId of datagroup - group of datacontent - contentlisteners - listenersNacosException - nacos exceptionpublic void removeTenantListener(String dataId, String group, Listener listener)
dataId - dataId of datagroup - group of datalistener - listenerpublic CacheData addCacheDataIfAbsent(String dataId, String group, String tenant) throws NacosException
dataId - data id if datagroup - group of datatenant - tenant of dataNacosExceptionpublic ConfigResponse getServerConfig(String dataId, String group, String tenant, long readTimeout) throws NacosException
NacosExceptionpublic void checkConfigInfo()
public void shutdown()
throws NacosException
shutdown 在接口中 CloseableNacosExceptionpublic boolean isHealthServer()
Copyright © 2018–2023 Alibaba Group. All rights reserved.