Javadoc
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1099906 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
70d37431ec
commit
0bae59de4f
|
@ -95,6 +95,8 @@ public class HttpClientParams {
|
|||
}
|
||||
|
||||
/**
|
||||
* Set the parameter {@code ClientPNames.CONN_MANAGER_TIMEOUT}.
|
||||
*
|
||||
* @since 4.2
|
||||
*/
|
||||
public static void setConnectionManagerTimeout(final HttpParams params, long timeout) {
|
||||
|
@ -105,7 +107,13 @@ public class HttpClientParams {
|
|||
}
|
||||
|
||||
/**
|
||||
* Get the connectiion manager timeout value.
|
||||
* This is defined by the parameter {@code ClientPNames.CONN_MANAGER_TIMEOUT}.
|
||||
* Failing that it uses the parameter {@code CoreConnectionPNames.CONNECTION_TIMEOUT}
|
||||
* which defaults to 0 if not defined.
|
||||
*
|
||||
* @since 4.2
|
||||
* @return the timeout value
|
||||
*/
|
||||
public static long getConnectionManagerTimeout(final HttpParams params) {
|
||||
if (params == null) {
|
||||
|
|
Loading…
Reference in New Issue