Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2617)

Issue 7443045: http: Sleeper, BackOff, and ExponentialBackOff (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by yanivi
Modified:
11 years, 1 month ago
Reviewers:
peleyal
CC:
rmistry, ngmiceli
Base URL:
https://code.google.com/p/google-http-java-client/
Visibility:
Public.

Description

http: Sleeper, BackOff, and ExponentialBackOff http issue 206: New BackOff interface and ExponentialBackOff implementation https://code.google.com/p/google-http-java-client/issues/detail?id=206 http issue 205: New Sleeper interface https://code.google.com/p/google-http-java-client/issues/detail?id=205

Patch Set 1 #

Patch Set 2 : update #

Patch Set 3 : Sleeper #

Patch Set 4 : more good stuff #

Patch Set 5 : minor #

Total comments: 10

Patch Set 6 : fixeds #

Total comments: 8

Patch Set 7 : fixes #

Patch Set 8 : add Experimental to 3 classes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1224 lines, -213 lines) Patch
M google-http-client/src/main/java/com/google/api/client/http/ExponentialBackOffPolicy.java View 1 2 22 chunks +36 lines, -156 lines 0 comments Download
M google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java View 1 2 3 4 5 6 8 chunks +39 lines, -30 lines 0 comments Download
A google-http-client/src/main/java/com/google/api/client/testing/util/MockBackOff.java View 1 2 3 4 5 6 7 1 chunk +95 lines, -0 lines 0 comments Download
A google-http-client/src/main/java/com/google/api/client/testing/util/MockSleeper.java View 1 2 3 4 5 6 7 1 chunk +60 lines, -0 lines 0 comments Download
A google-http-client/src/main/java/com/google/api/client/util/BackOff.java View 1 2 3 4 5 1 chunk +79 lines, -0 lines 0 comments Download
A google-http-client/src/main/java/com/google/api/client/util/BackOffUtils.java View 1 2 3 4 5 6 7 1 chunk +56 lines, -0 lines 0 comments Download
M google-http-client/src/main/java/com/google/api/client/util/Clock.java View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
A google-http-client/src/main/java/com/google/api/client/util/ExponentialBackOff.java View 1 2 1 chunk +504 lines, -0 lines 0 comments Download
M google-http-client/src/main/java/com/google/api/client/util/NanoClock.java View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
A google-http-client/src/main/java/com/google/api/client/util/Sleeper.java View 1 2 3 4 1 chunk +47 lines, -0 lines 0 comments Download
M google-http-client/src/test/java/com/google/api/client/http/ExponentialBackOffPolicyTest.java View 1 2 chunks +0 lines, -22 lines 0 comments Download
A google-http-client/src/test/java/com/google/api/client/testing/util/MockBackOffTest.java View 1 2 3 4 5 6 7 1 chunk +43 lines, -0 lines 0 comments Download
A google-http-client/src/test/java/com/google/api/client/util/BackOffTest.java View 1 2 3 4 5 6 7 1 chunk +39 lines, -0 lines 0 comments Download
A google-http-client/src/test/java/com/google/api/client/util/BackOffUtilsTest.java View 1 2 3 4 5 6 1 chunk +56 lines, -0 lines 0 comments Download
A google-http-client/src/test/java/com/google/api/client/util/ExponentialBackOffTest.java View 1 2 1 chunk +164 lines, -0 lines 0 comments Download

Messages

Total messages: 6
peleyal
https://codereview.appspot.com/7443045/diff/9001/google-http-client/src/main/java/com/google/api/client/util/BackOffUtils.java File google-http-client/src/main/java/com/google/api/client/util/BackOffUtils.java (right): https://codereview.appspot.com/7443045/diff/9001/google-http-client/src/main/java/com/google/api/client/util/BackOffUtils.java#newcode32 google-http-client/src/main/java/com/google/api/client/util/BackOffUtils.java:32: * If {@code true}, it will call {@link Thread#sleep(long)} ...
11 years, 1 month ago (2013-03-12 20:07:56 UTC) #1
peleyal
another small comment https://codereview.appspot.com/7443045/diff/9001/google-http-client/src/test/java/com/google/api/client/util/FixedBackOffTest.java File google-http-client/src/test/java/com/google/api/client/util/FixedBackOffTest.java (right): https://codereview.appspot.com/7443045/diff/9001/google-http-client/src/test/java/com/google/api/client/util/FixedBackOffTest.java#newcode26 google-http-client/src/test/java/com/google/api/client/util/FixedBackOffTest.java:26: public void testGetNextBackOffMillis_zero() { rename the ...
11 years, 1 month ago (2013-03-12 20:25:56 UTC) #2
yanivi
https://codereview.appspot.com/7443045/diff/9001/google-http-client/src/main/java/com/google/api/client/util/BackOffUtils.java File google-http-client/src/main/java/com/google/api/client/util/BackOffUtils.java (right): https://codereview.appspot.com/7443045/diff/9001/google-http-client/src/main/java/com/google/api/client/util/BackOffUtils.java#newcode32 google-http-client/src/main/java/com/google/api/client/util/BackOffUtils.java:32: * If {@code true}, it will call {@link Thread#sleep(long)} ...
11 years, 1 month ago (2013-03-13 15:54:54 UTC) #3
peleyal
https://codereview.appspot.com/7443045/diff/24001/google-http-client/src/main/java/com/google/api/client/testing/util/MockBackOff.java File google-http-client/src/main/java/com/google/api/client/testing/util/MockBackOff.java (right): https://codereview.appspot.com/7443045/diff/24001/google-http-client/src/main/java/com/google/api/client/testing/util/MockBackOff.java#newcode89 google-http-client/src/main/java/com/google/api/client/testing/util/MockBackOff.java:89: public final int getNumberOfRetries() { [optional] as discussed, I ...
11 years, 1 month ago (2013-03-13 16:59:41 UTC) #4
yanivi
https://codereview.appspot.com/7443045/diff/24001/google-http-client/src/main/java/com/google/api/client/testing/util/MockBackOff.java File google-http-client/src/main/java/com/google/api/client/testing/util/MockBackOff.java (right): https://codereview.appspot.com/7443045/diff/24001/google-http-client/src/main/java/com/google/api/client/testing/util/MockBackOff.java#newcode89 google-http-client/src/main/java/com/google/api/client/testing/util/MockBackOff.java:89: public final int getNumberOfRetries() { On 2013/03/13 16:59:41, peleyal ...
11 years, 1 month ago (2013-03-13 18:49:28 UTC) #5
peleyal
11 years, 1 month ago (2013-03-13 19:12:45 UTC) #6
LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b