Code style
This commit is contained in:
@@ -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 +
|
||||
" }";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user