java - DefaultHttpMethodRetryHandler change the retry interval -
i using defaulthttpmethodretryhandler
class retry failure request.
i have tried
httpclient client = new httpclient(); client.getparams(). setparameter(httpmethodparams.retry_handler, new defaulthttpmethodretryhandler( 3, false ));
this retrying 3 times. have not found option retry request after 10 minutes or 1 hour.
how can set intervals between retries?
based on answer http://www.programcreek.com/java-api-examples/index.php?api=org.apache.commons.httpclient.defaulthttpmethodretryhandler, can use following:
client.getparams(). setparameter(httpconnectionparams.connection_timeout, 2000);
cheers!
Comments
Post a Comment