public class ClientWorker.ConfigRpcTransportClient extends ConfigTransportClient
securityProxy| 构造器和说明 |
|---|
ConfigRpcTransportClient(NacosClientProperties properties,
ServerListManager serverListManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
checkLocalConfig(CacheData cacheData)
Checks and handles local configuration for a given CacheData object.
|
void |
executeConfigListen()
listen change .
|
String |
getName()
get client name.
|
boolean |
isHealthServer()
check server is health.
|
void |
notifyListenConfig()
notify listen config.
|
boolean |
publishConfig(String dataId,
String group,
String tenant,
String appName,
String tag,
String betaIps,
String content,
String encryptedDataKey,
String casMd5,
String type)
publish config.
|
ConfigResponse |
queryConfig(String dataId,
String group,
String tenant,
long readTimeouts,
boolean notify)
query config.
|
void |
removeCache(String dataId,
String group)
remove cache implements.
|
boolean |
removeConfig(String dataId,
String group,
String tenant,
String tag)
remove config.
|
void |
shutdown() |
void |
startInternal()
start client inner.
|
buildResource, getCommonHeader, getEncode, getSecurityHeaders, getTenant, setExecutor, startpublic ConfigRpcTransportClient(NacosClientProperties properties, ServerListManager serverListManager)
public void shutdown()
throws NacosException
shutdown 在类中 ConfigTransportClientNacosExceptionpublic void startInternal()
ConfigTransportClientstartInternal 在类中 ConfigTransportClientpublic String getName()
ConfigTransportClientgetName 在类中 ConfigTransportClientpublic void notifyListenConfig()
ConfigTransportClientnotifyListenConfig 在类中 ConfigTransportClientpublic void executeConfigListen()
throws NacosException
ConfigTransportClientexecuteConfigListen 在类中 ConfigTransportClientNacosException - nacos exception throws, should retry.public void checkLocalConfig(CacheData cacheData)
cacheData - The CacheData object to be processed.public void removeCache(String dataId, String group)
ConfigTransportClientremoveCache 在类中 ConfigTransportClientdataId - dataId.group - grouppublic ConfigResponse queryConfig(String dataId, String group, String tenant, long readTimeouts, boolean notify) throws NacosException
ConfigTransportClientqueryConfig 在类中 ConfigTransportClientdataId - dataId.group - group.tenant - tenat.readTimeouts - readTimeous.notify - query for notify sync.NacosException - throw where query fail .public boolean publishConfig(String dataId, String group, String tenant, String appName, String tag, String betaIps, String content, String encryptedDataKey, String casMd5, String type) throws NacosException
ConfigTransportClientpublishConfig 在类中 ConfigTransportClientdataId - dataId.group - group.tenant - tenant.appName - appName.tag - tag.betaIps - betaIps.content - content.encryptedDataKey - encryptedDataKeycasMd5 - casMd5.type - type.NacosException - throw where publish fail.public boolean removeConfig(String dataId, String group, String tenant, String tag) throws NacosException
ConfigTransportClientremoveConfig 在类中 ConfigTransportClientdataId - dataid.group - group.tenant - tenat.tag - tag.NacosException - throw where publish fail.public boolean isHealthServer()
Copyright © 2018–2024 Alibaba Group. All rights reserved.