How can I migrate to setRetryStrategy for below Apache httpcomponents-client 5.x
HttpClientBuilder cb = HttpClients.custom();
cb.setRetryHandler(new DefaultHttpRequestRetryHandler(X, true));
There is no parameter of requestSentRetryEnabled in latest DefaultHttpRequestStrategy
Migration to httpcomponents-client 5.x
requestSentRetryEnabled is not required, if you setRetryHandler to DefaultHttpRequestStrategy which will retry if the error is 503 example code below
If you want to see more custom strategy which retries all check here.