Code style

This commit is contained in:
hongqiaowei
2021-09-30 12:51:06 +08:00
parent 92e8d5cf86
commit a95415346b

View File

@@ -33,6 +33,7 @@ import reactor.netty.tcp.TcpClient;
import javax.annotation.Resource;
import javax.net.ssl.SSLException;
import java.time.Duration;
import java.util.concurrent.TimeUnit;
/**
@@ -91,13 +92,15 @@ public abstract class WebClientConfig {
this.chConnTimeout = chConnTimeout;
}
// public Long getResponseTimeout() {
// return responseTimeout;
// }
//
// public void setResponseTimeout(Long responseTimeout) {
// this.responseTimeout = responseTimeout;
// }
/*
public Long getResponseTimeout() {
return responseTimeout;
}
public void setResponseTimeout(Long responseTimeout) {
this.responseTimeout = responseTimeout;
}
*/
public Boolean isChTcpNodelay() {
return chTcpNodelay;
@@ -123,11 +126,13 @@ public abstract class WebClientConfig {
this.compress = compress;
}
// @Resource
// ReactorClientHttpConnector reactorClientHttpConnector;
/*
@Resource
ReactorClientHttpConnector reactorClientHttpConnector;
// @Resource
// WebClient.Builder webClientBuilder;
@Resource
WebClient.Builder webClientBuilder;
*/
@Resource
WebClientBuilderConfig webClientBuilderConfig;
@@ -163,9 +168,11 @@ public abstract class WebClientConfig {
if (compress != null) {
httpClient = httpClient.compress(compress);
}
// if (responseTimeout != null) {
// httpClient = httpClient.responseTimeout(Duration.ofMillis(responseTimeout));
// }
/*
if (responseTimeout != null) {
httpClient = httpClient.responseTimeout(Duration.ofMillis(responseTimeout));
}
*/
if (trustInsecureSSL != null && trustInsecureSSL) {
try {
@@ -194,6 +201,7 @@ public abstract class WebClientConfig {
", chTcpNodelay=" + chTcpNodelay +
", chSoKeepAlive=" + chSoKeepAlive +
", compress=" + compress +
", trustInsecureSSL=" + trustInsecureSSL +
" }";
}
}