public abstract class ConfigTransportClient extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected SecurityProxy |
securityProxy |
| 构造器和说明 |
|---|
ConfigTransportClient(NacosClientProperties properties,
ServerListManager serverListManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected RequestResource |
buildResource(String tenant,
String group,
String dataId)
Build the resource for current request.
|
abstract void |
executeConfigListen()
listen change .
|
protected Map<String,String> |
getCommonHeader()
get common header.
|
String |
getEncode()
get encode.
|
abstract String |
getName()
get client name.
|
protected Map<String,String> |
getSecurityHeaders(RequestResource resource) |
String |
getTenant()
get tenant.
|
abstract void |
notifyListenConfig()
notify listen config.
|
abstract boolean |
publishConfig(String dataId,
String group,
String tenant,
String appName,
String tag,
String betaIps,
String content,
String encryptedDataKey,
String casMd5,
String type)
publish config.
|
abstract ConfigResponse |
queryConfig(String dataId,
String group,
String tenat,
long readTimeous,
boolean notify)
query config.
|
abstract void |
removeCache(String dataId,
String group)
remove cache implements.
|
abstract boolean |
removeConfig(String dataid,
String group,
String tenat,
String tag)
remove config.
|
void |
setExecutor(ScheduledExecutorService executor) |
void |
shutdown() |
void |
start()
base start client.
|
abstract void |
startInternal()
start client inner.
|
protected SecurityProxy securityProxy
public ConfigTransportClient(NacosClientProperties properties, ServerListManager serverListManager)
public void shutdown()
throws NacosException
NacosExceptionprotected RequestResource buildResource(String tenant, String group, String dataId)
tenant - tenant of configgroup - group of configdataId - dataId of configprotected Map<String,String> getSecurityHeaders(RequestResource resource) throws Exception
Exceptionpublic void setExecutor(ScheduledExecutorService executor)
public void start()
throws NacosException
NacosExceptionpublic abstract void startInternal()
throws NacosException
NacosException - exception may throw.public abstract String getName()
public String getEncode()
public String getTenant()
public abstract void notifyListenConfig()
public abstract void executeConfigListen()
throws NacosException
NacosException - nacos exception throws, should retry.public abstract void removeCache(String dataId, String group)
dataId - dataId.group - grouppublic abstract ConfigResponse queryConfig(String dataId, String group, String tenat, long readTimeous, boolean notify) throws NacosException
dataId - dataId.group - group.tenat - tenat.readTimeous - readTimeous.notify - query for notify sync.NacosException - throw where query fail .public abstract boolean publishConfig(String dataId, String group, String tenant, String appName, String tag, String betaIps, String content, String encryptedDataKey, String casMd5, String type) throws NacosException
dataId - dataId.group - group.tenant - tenant.appName - appName.tag - tag.betaIps - betaIps.content - content.encryptedDataKey - encryptedDataKeycasMd5 - casMd5.type - type.NacosException - throw where publish fail.public abstract boolean removeConfig(String dataid, String group, String tenat, String tag) throws NacosException
dataid - dataid.group - group.tenat - tenat.tag - tag.NacosException - throw where publish fail.Copyright © 2018–2024 Alibaba Group. All rights reserved.