Why are all methods deprecated in PoolingClientConnectionManager?

In Apache, httpclient 4. *, why are all methods deprecated? If everyone is out of date, how can we use this class effectively.

When I do PoolingClientConnectionManager.getTotalStats ()

I see the following conclusion

[rented: 2; pending: 0; available: 0; max: 20], and I never see any available above 0 in any concurrency.

Please inform.

+5
source share
1 answer

http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/impl/conn/PoolingClientConnectionManager.html

The PoolingClientConnectionManager class PoolingClientConnectionManager deprecated, so all methods are deprecated. Do not use the class. Use the PoolingHttpClientConnectionManager .

+8
source

Source: https://habr.com/ru/post/1212253/


All Articles