mobile/android/thirdparty/ch/boye/httpclientandroidlib/conn/params/ConnManagerPNames.java

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /*
     2  * ====================================================================
     3  *
     4  *  Licensed to the Apache Software Foundation (ASF) under one or more
     5  *  contributor license agreements.  See the NOTICE file distributed with
     6  *  this work for additional information regarding copyright ownership.
     7  *  The ASF licenses this file to You under the Apache License, Version 2.0
     8  *  (the "License"); you may not use this file except in compliance with
     9  *  the License.  You may obtain a copy of the License at
    10  *
    11  *      http://www.apache.org/licenses/LICENSE-2.0
    12  *
    13  *  Unless required by applicable law or agreed to in writing, software
    14  *  distributed under the License is distributed on an "AS IS" BASIS,
    15  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    16  *  See the License for the specific language governing permissions and
    17  *  limitations under the License.
    18  * ====================================================================
    19  *
    20  * This software consists of voluntary contributions made by many
    21  * individuals on behalf of the Apache Software Foundation.  For more
    22  * information on the Apache Software Foundation, please see
    23  * <http://www.apache.org/>.
    24  *
    25  */
    27 package ch.boye.httpclientandroidlib.conn.params;
    29 import ch.boye.httpclientandroidlib.impl.conn.tsccm.ThreadSafeClientConnManager;
    30 import ch.boye.httpclientandroidlib.params.CoreConnectionPNames;
    32 /**
    33  * Parameter names for connection managers in HttpConn.
    34  *
    35  * @since 4.0
    36  */
    37 @Deprecated
    38 public interface ConnManagerPNames {
    40     /**
    41      * Defines the timeout in milliseconds used when retrieving an instance of
    42      * {@link ch.boye.httpclientandroidlib.conn.ManagedClientConnection} from the
    43      * {@link ch.boye.httpclientandroidlib.conn.ClientConnectionManager}.
    44      * <p>
    45      * This parameter expects a value of type {@link Long}.
    46      * <p>
    47      * @deprecated use {@link CoreConnectionPNames#CONNECTION_TIMEOUT}
    48      */
    49     @Deprecated
    50     public static final String TIMEOUT = "http.conn-manager.timeout";
    52     /**
    53      * Defines the maximum number of connections per route.
    54      * This limit is interpreted by client connection managers
    55      * and applies to individual manager instances.
    56      * <p>
    57      * This parameter expects a value of type {@link ConnPerRoute}.
    58      * <p>
    59      * @deprecated use {@link ThreadSafeClientConnManager#setMaxForRoute(ch.boye.httpclientandroidlib.conn.routing.HttpRoute, int)},
    60      *  {@link ThreadSafeClientConnManager#getMaxForRoute(ch.boye.httpclientandroidlib.conn.routing.HttpRoute)}
    61      */
    62     @Deprecated
    63     public static final String MAX_CONNECTIONS_PER_ROUTE = "http.conn-manager.max-per-route";
    65     /**
    66      * Defines the maximum number of connections in total.
    67      * This limit is interpreted by client connection managers
    68      * and applies to individual manager instances.
    69      * <p>
    70      * This parameter expects a value of type {@link Integer}.
    71      * <p>
    72      * @deprecated use {@link ThreadSafeClientConnManager#setMaxTotal(int)},
    73      *  {@link ThreadSafeClientConnManager#getMaxTotal()}
    74      */
    75     @Deprecated
    76     public static final String MAX_TOTAL_CONNECTIONS = "http.conn-manager.max-total";
    78 }

mercurial