ok2c commented on code in PR #732:
URL:
https://github.com/apache/httpcomponents-client/pull/732#discussion_r2413433074
##########
httpclient5/src/main/java/org/apache/hc/client5/http/config/ConnectionConfig.java:
##########
@@ -194,6 +206,33 @@ public Builder setConnectTimeout(final long
connectTimeout, final TimeUnit timeU
return this;
}
+ /**
+ * Determines the maximum period of idleness for a connection.
+ * Connections that are idle for longer than {@code idleTimeout} are no
+ * longer eligible for reuse.
+ * <p>
+ * A timeout value of zero is interpreted as an infinite timeout.
+ * </p>
+ * <p>
+ * Default: {@code null} (undefined)
+ * </p>
+ *
+ * @return this instance.
+ */
+ public Builder setIdleTimeout(final Timeout idleTimeout) {
Review Comment:
@rschmitt Could you please add `@since 5.6` tag? Looks good otherwise.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]