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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -