Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
New BackOff interface and ExponentialBackOff implementation #206
From yan...@google.com on March 12, 2013 11:29:14
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.