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