artiya4u / google-http-java-client

Automatically exported from code.google.com/p/google-http-java-client
0 stars 0 forks source link

New BackOff interface and ExponentialBackOff implementation #206

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
External references, such as a standards document, or specification?

http://javadoc.google-http-java-client.googlecode.com/hg/1.13.1-beta/com/google/
api/client/http/BackOffPolicy.html

http://javadoc.google-http-java-client.googlecode.com/hg/1.13.1-beta/com/google/
api/client/http/ExponentialBackOffPolicy.html

Java environments (e.g. Java 6, Android 2.3, App Engine, or All)?

All

Please describe the feature requested.

The current BackOffPolicy and ExponentialBackOffPolicy are too closely coupled 
with HttpRequest and thus are not friendly to use outside of that context.  
Therefore, we are extracting a BackOff interface and ExponentialBackOff 
implementation in the util package that is not specific to HTTP request, and 
they will be used from the implementation of ExponentialBackOffPolicy.  We will 
also add a FixedBackOff implementation.

Original issue reported on code.google.com by yan...@google.com on 12 Mar 2013 at 6:29

GoogleCodeExporter commented 9 years ago
https://codereview.appspot.com/7443045/

Original comment by yan...@google.com on 13 Mar 2013 at 3:59

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 13 Mar 2013 at 7:32