hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1604897 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/config/RequestConfig.java
Date Mon, 23 Jun 2014 18:18:04 GMT
Author: sebb
Date: Mon Jun 23 18:18:03 2014
New Revision: 1604897

URL: http://svn.apache.org/r1604897
Log:
More doc on connection checking
Fix bug in Javadoc - default is now false.

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/config/RequestConfig.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/config/RequestConfig.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/config/RequestConfig.java?rev=1604897&r1=1604896&r2=1604897&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/config/RequestConfig.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/config/RequestConfig.java
Mon Jun 23 18:18:03 2014
@@ -31,7 +31,14 @@ import java.net.InetAddress;
 import java.util.Collection;
 
 import org.apache.http.HttpHost;
+import org.apache.http.annotation.Immutable;
 
+/**
+ *  Immutable class encapsulating request configuration items.
+ *  The default setting for stale connection checking changed
+ *  to false, and the feature was deprecated starting with version 4.4.
+ */
+@Immutable
 public class RequestConfig implements Cloneable {
 
     public static final RequestConfig DEFAULT = new Builder().build();
@@ -140,7 +147,7 @@ public class RequestConfig implements Cl
      * should be used only when appropriate. For performance critical
      * operations this check should be disabled.
      * <p/>
-     * Default: <code>true</code>
+     * Default: <code>false</code> since 4.4
      *
      * @deprecated (4.4) Use {@link
      *   org.apache.http.impl.conn.PoolingHttpClientConnectionManager#getValidateAfterInactivity()}



Mime
View raw message