mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
Update NacosConfigProperties.java
This commit is contained in:
parent
845469122c
commit
a859bf44ee
@ -85,25 +85,25 @@ public class NacosConfigProperties {
|
|||||||
*/
|
*/
|
||||||
private int timeout = 3000;
|
private int timeout = 3000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* nacos maximum number of tolerable server reconnection errors
|
* nacos maximum number of tolerable server reconnection errors
|
||||||
*/
|
*/
|
||||||
private String maxRetry;
|
private String maxRetry;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* nacos get config long poll timeout
|
* nacos get config long poll timeout
|
||||||
*/
|
*/
|
||||||
private String configLongPollTimeout;
|
private String configLongPollTimeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* nacos get config failure retry time
|
* nacos get config failure retry time
|
||||||
*/
|
*/
|
||||||
private String configRetryTime;
|
private String configRetryTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* nacos enable add a listener when the configuration is obtained
|
* nacos enable add a listener when the configuration is obtained
|
||||||
*/
|
*/
|
||||||
private boolean enableRemoteSyncConfig = false;
|
private boolean enableRemoteSyncConfig = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* endpoint for Nacos, the domain name of a service, through which the server address
|
* endpoint for Nacos, the domain name of a service, through which the server address
|
||||||
@ -201,37 +201,37 @@ public class NacosConfigProperties {
|
|||||||
this.timeout = timeout;
|
this.timeout = timeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getMaxRetry() {
|
public String getMaxRetry() {
|
||||||
return maxRetry;
|
return maxRetry;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMaxRetry(String maxRetry) {
|
public void setMaxRetry(String maxRetry) {
|
||||||
this.maxRetry = maxRetry;
|
this.maxRetry = maxRetry;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getConfigLongPollTimeout() {
|
public String getConfigLongPollTimeout() {
|
||||||
return configLongPollTimeout;
|
return configLongPollTimeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setConfigLongPollTimeout(String configLongPollTimeout) {
|
public void setConfigLongPollTimeout(String configLongPollTimeout) {
|
||||||
this.configLongPollTimeout = configLongPollTimeout;
|
this.configLongPollTimeout = configLongPollTimeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getConfigRetryTime() {
|
public String getConfigRetryTime() {
|
||||||
return configRetryTime;
|
return configRetryTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setConfigRetryTime(String configRetryTime) {
|
public void setConfigRetryTime(String configRetryTime) {
|
||||||
this.configRetryTime = configRetryTime;
|
this.configRetryTime = configRetryTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Boolean getEnableRemoteSyncConfig() {
|
public Boolean getEnableRemoteSyncConfig() {
|
||||||
return enableRemoteSyncConfig;
|
return enableRemoteSyncConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEnableRemoteSyncConfig(Boolean enableRemoteSyncConfig) {
|
public void setEnableRemoteSyncConfig(Boolean enableRemoteSyncConfig) {
|
||||||
this.enableRemoteSyncConfig = enableRemoteSyncConfig;
|
this.enableRemoteSyncConfig = enableRemoteSyncConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getEndpoint() {
|
public String getEndpoint() {
|
||||||
return endpoint;
|
return endpoint;
|
||||||
@ -387,10 +387,10 @@ public class NacosConfigProperties {
|
|||||||
properties.put(SECRET_KEY, Objects.toString(this.secretKey, ""));
|
properties.put(SECRET_KEY, Objects.toString(this.secretKey, ""));
|
||||||
properties.put(CONTEXT_PATH, Objects.toString(this.contextPath, ""));
|
properties.put(CONTEXT_PATH, Objects.toString(this.contextPath, ""));
|
||||||
properties.put(CLUSTER_NAME, Objects.toString(this.clusterName, ""));
|
properties.put(CLUSTER_NAME, Objects.toString(this.clusterName, ""));
|
||||||
properties.put(MAX_RETRY, Objects.toString(this.maxRetry, ""));
|
properties.put(MAX_RETRY, Objects.toString(this.maxRetry, ""));
|
||||||
properties.put(CONFIG_LONG_POLL_TIMEOUT, Objects.toString(this.configLongPollTimeout, ""));
|
properties.put(CONFIG_LONG_POLL_TIMEOUT, Objects.toString(this.configLongPollTimeout, ""));
|
||||||
properties.put(CONFIG_RETRY_TIME, Objects.toString(this.configRetryTime, ""));
|
properties.put(CONFIG_RETRY_TIME, Objects.toString(this.configRetryTime, ""));
|
||||||
properties.put(ENABLE_REMOTE_SYNC_CONFIG, Objects.toString(this.enableRemoteSyncConfig, ""));
|
properties.put(ENABLE_REMOTE_SYNC_CONFIG, Objects.toString(this.enableRemoteSyncConfig, ""));
|
||||||
|
|
||||||
String endpoint = Objects.toString(this.endpoint, "");
|
String endpoint = Objects.toString(this.endpoint, "");
|
||||||
if (endpoint.contains(":")) {
|
if (endpoint.contains(":")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user