[type: refactor] add http client strategy property.
@@ -44,6 +44,11 @@ import java.util.Optional;
*/
public class HttpClientProperties {
+ /**
+ * the http client strategy.
+ */
+ private String strategy;
+
/**
* The connect timeout in millis, the default is 45s.
*/
@@ -104,10 +109,28 @@ public class HttpClientProperties {
*/
private boolean keepAlive;
+ /**
+ * Gets strategy.
+ *
+ * @return to strategy
+ */
+ public String getStrategy() {
+ return strategy;
+ }
+
+ /**
+ * Sets strategy.
+ *
+ * @param strategy to strategy
+ */
+ public void setStrategy(final String strategy) {
+ this.strategy = strategy;
+ }
+
/**
* Gets connect timeout.
*
- * @return the connect timeout
+ * @return to connect timeout
*/
public Integer getConnectTimeout() {
return connectTimeout;
@@ -116,7 +139,7 @@ public class HttpClientProperties {
/**
* Sets connect timeout.
*
- * @param connectTimeout the connect timeout
+ * @param connectTimeout to connect timeout
*/
public void setConnectTimeout(final Integer connectTimeout) {
this.connectTimeout = connectTimeout;
@@ -348,9 +371,9 @@ public class HttpClientProperties {
/**
* Time in millis after which the channel will be closed,
- * if NULL there is no max idle time. the default is 30s.
+ * if NULL there is no max idle time.
*/
- private Long maxIdleTime = 30000L;
+ private Long maxIdleTime;
/**
* Gets type.
