git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1099906 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2011-05-05 18:25:31 +00:00
parent 70d37431ec
commit 0bae59de4f
1 changed files with 8 additions and 0 deletions

View File

@ -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) {