Closed GoogleCodeExporter closed 9 years ago
The retryOnExecuteIOException field is deprecated. Instead, you could provide
an instance of HttpIOExceptionHandler [1] when instantiate your client, where
you put your retry logic in. For your convenience, you can use the predefined
HttpBackOffIOExceptionHandler [2] that does retry with an exponential backoff
policy.
There are other examples regarding handling unsuccessful http requests here:
https://code.google.com/p/google-http-java-client/wiki/ExponentialBackoff
[1]
https://code.google.com/p/google-http-java-client/source/browse/google-http-clie
nt/src/main/java/com/google/api/client/http/HttpIOExceptionHandler.java
[2]
https://code.google.com/p/google-http-java-client/source/browse/google-http-clie
nt/src/main/java/com/google/api/client/http/HttpBackOffIOExceptionHandler.java
Original comment by wonder...@google.com
on 30 Dec 2014 at 11:12
Original issue reported on code.google.com by
xinxinji...@gmail.com
on 30 Nov 2014 at 8:17