Class ConnPerRouteBean

  • All Implemented Interfaces:
    ConnPerRoute

    @Deprecated
    @Contract(threading=SAFE)
    public final class ConnPerRouteBean
    extends java.lang.Object
    implements ConnPerRoute
    Deprecated.
    (4.2) use ConnPoolControl
    This class maintains a map of HTTP routes to maximum number of connections allowed for those routes. This class can be used by pooling connection managers for a fine-grained control of connections on a per route basis.
    Since:
    4.0
    • Field Detail

      • DEFAULT_MAX_CONNECTIONS_PER_ROUTE

        public static final int DEFAULT_MAX_CONNECTIONS_PER_ROUTE
        Deprecated.
        The default maximum number of connections allowed per host
        See Also:
        Constant Field Values
    • Constructor Detail

      • ConnPerRouteBean

        public ConnPerRouteBean​(int defaultMax)
        Deprecated.
      • ConnPerRouteBean

        public ConnPerRouteBean()
        Deprecated.
    • Method Detail

      • getDefaultMax

        public int getDefaultMax()
        Deprecated.
      • getDefaultMaxPerRoute

        public int getDefaultMaxPerRoute()
        Deprecated.
        Since:
        4.1
      • setDefaultMaxPerRoute

        public void setDefaultMaxPerRoute​(int max)
        Deprecated.
      • setMaxForRoute

        public void setMaxForRoute​(HttpRoute route,
                                   int max)
        Deprecated.
      • setMaxForRoutes

        public void setMaxForRoutes​(java.util.Map<HttpRoute,​java.lang.Integer> map)
        Deprecated.
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object