What is the meaning of “per route basis” in PoolingClientConnectionManager?

前端 未结 2 767
[愿得一人]
[愿得一人] 2021-02-19 04:55

ThreadSafeClientConnManager is deprecated and a new method is introduced PoolingClientConnectionManager.

The documentation of PoolingClientConnectionManager says

<
2条回答
  •  失恋的感觉
    2021-02-19 05:40

    Put it in simple term, per route means per host you are connecting to.

    PoolingHttpClientConnectionManager maintains a maximum limit of connections on a per route basis and in total. Per default this implementation will create no more than 2 concurrent connections per given route and no more 20 connections in total.

提交回复
热议问题