Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
4.4.1
-
None
-
Important
Description
The API 'setStaleConnectionCheckEnabled' on the RequestConfig Builder is deprecated. It points to calling 'setValidateAfterInactivity' on the PoolingHttpClientConnectionManager class.
However we shouldn't mandate creating our own PoolingHttpClientConnectionManager instance (instead of reusing the one created automatically by the httpClient builder) just to setValidateAfterInactivity.
We should expose on the client/request config builder a setValidateAfterInactivity like we do for 'setMaxConnPerRoute' and 'setMaxConnTotal' (which in the builder are later set on the internally created PoolingHttpClientConnectionManager ).