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

Issue 7925043: Http Issue 210: add back-off handlers (http) (Closed)

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

Description

Issue 210: add back-off handlers

Patch Set 1 #

Patch Set 2 : minor #

Patch Set 3 : minor #

Total comments: 66

Patch Set 4 : Yanivi comments #

Patch Set 5 : minor #

Patch Set 6 : minor #

Total comments: 29

Patch Set 7 : Yanivi comments and pull latest version #

Patch Set 8 : minor #

Patch Set 9 : Add @Beta to JavaDoc on deprecated API #

Total comments: 2

Patch Set 10 : change handle to handleIOException #

Patch Set 11 : improve tests in HttpRequestTest #

Patch Set 12 : minor #

Total comments: 12

Patch Set 13 : minor #

Patch Set 14 : minor #

Total comments: 4

Patch Set 15 : JavaDoc and remove builders #

Patch Set 16 : minor #

Patch Set 17 : comments #

Patch Set 18 : hg pull -u #

Total comments: 1

Patch Set 19 : minor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+833 lines, -23 lines) Patch
M findbugs-exclude.xml View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M google-http-client/src/main/java/com/google/api/client/http/BackOffPolicy.java View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -7 lines 0 comments Download
M google-http-client/src/main/java/com/google/api/client/http/ExponentialBackOffPolicy.java View 1 2 3 4 5 6 7 8 4 chunks +10 lines, -0 lines 0 comments Download
A google-http-client/src/main/java/com/google/api/client/http/HttpBackOffIOExceptionHandler.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +118 lines, -0 lines 0 comments Download
A google-http-client/src/main/java/com/google/api/client/http/HttpBackOffUnsuccessfulResponseHandler.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +187 lines, -0 lines 0 comments Download
A google-http-client/src/main/java/com/google/api/client/http/HttpIOExceptionHandler.java View 1 2 3 4 5 6 7 8 9 1 chunk +70 lines, -0 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 7 8 9 10 11 12 13 14 15 16 17 14 chunks +76 lines, -7 lines 0 comments Download
M google-http-client/src/main/java/com/google/api/client/http/HttpUnsuccessfulResponseHandler.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -4 lines 0 comments Download
M google-http-client/src/test/java/com/google/api/client/http/ExponentialBackOffPolicyTest.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
A google-http-client/src/test/java/com/google/api/client/http/HttpBackOffIOExpcetionHandlerTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +51 lines, -0 lines 0 comments Download
A google-http-client/src/test/java/com/google/api/client/http/HttpBackOffUnsuccessfulResponseHandlerTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +65 lines, -0 lines 0 comments Download
M google-http-client/src/test/java/com/google/api/client/http/HttpRequestTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 21 chunks +237 lines, -5 lines 0 comments Download

Messages

Total messages: 20
peleyal
11 years, 1 month ago (2013-03-21 16:27:03 UTC) #1
yanivi
https://codereview.appspot.com/7925043/diff/4001/google-http-client/src/main/java/com/google/api/client/http/HttpBackOffIOExceptionHandler.java File google-http-client/src/main/java/com/google/api/client/http/HttpBackOffIOExceptionHandler.java (right): https://codereview.appspot.com/7925043/diff/4001/google-http-client/src/main/java/com/google/api/client/http/HttpBackOffIOExceptionHandler.java#newcode34 google-http-client/src/main/java/com/google/api/client/http/HttpBackOffIOExceptionHandler.java:34: /** The handler back-off. */ simplify description: "back-off policy" ...
11 years, 1 month ago (2013-03-26 19:44:49 UTC) #2
yanivi
https://codereview.appspot.com/7925043/diff/4001/google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java File google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java (right): https://codereview.appspot.com/7925043/diff/4001/google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java#newcode939 google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java:939: * Execute the HTTP request and returns the HTTP ...
11 years, 1 month ago (2013-03-26 20:18:47 UTC) #3
peleyal
https://codereview.appspot.com/7925043/diff/4001/google-http-client/src/main/java/com/google/api/client/http/HttpBackOffIOExceptionHandler.java File google-http-client/src/main/java/com/google/api/client/http/HttpBackOffIOExceptionHandler.java (right): https://codereview.appspot.com/7925043/diff/4001/google-http-client/src/main/java/com/google/api/client/http/HttpBackOffIOExceptionHandler.java#newcode34 google-http-client/src/main/java/com/google/api/client/http/HttpBackOffIOExceptionHandler.java:34: /** The handler back-off. */ On 2013/03/26 19:44:50, yanivi ...
11 years, 1 month ago (2013-03-27 13:26:54 UTC) #4
yanivi
only minor comments... https://codereview.appspot.com/7925043/diff/32001/google-http-client/src/main/java/com/google/api/client/http/BackOffPolicy.java File google-http-client/src/main/java/com/google/api/client/http/BackOffPolicy.java (right): https://codereview.appspot.com/7925043/diff/32001/google-http-client/src/main/java/com/google/api/client/http/BackOffPolicy.java#newcode22 google-http-client/src/main/java/com/google/api/client/http/BackOffPolicy.java:22: * Strategy interface to control back ...
11 years, 1 month ago (2013-03-28 14:11:58 UTC) #5
peleyal
Applying your comments and pulling the latest version https://codereview.appspot.com/7925043/diff/32001/google-http-client/src/main/java/com/google/api/client/http/BackOffPolicy.java File google-http-client/src/main/java/com/google/api/client/http/BackOffPolicy.java (right): https://codereview.appspot.com/7925043/diff/32001/google-http-client/src/main/java/com/google/api/client/http/BackOffPolicy.java#newcode22 google-http-client/src/main/java/com/google/api/client/http/BackOffPolicy.java:22: * ...
11 years, 1 month ago (2013-04-02 08:34:13 UTC) #6
yanivi
https://codereview.appspot.com/7925043/diff/32001/google-http-client/src/main/java/com/google/api/client/http/BackOffPolicy.java File google-http-client/src/main/java/com/google/api/client/http/BackOffPolicy.java (right): https://codereview.appspot.com/7925043/diff/32001/google-http-client/src/main/java/com/google/api/client/http/BackOffPolicy.java#newcode22 google-http-client/src/main/java/com/google/api/client/http/BackOffPolicy.java:22: * Strategy interface to control back off between retry ...
11 years, 1 month ago (2013-04-02 22:26:46 UTC) #7
peleyal
Done. I'm pretty sure that in other places we added {@link Beta} in JavaDoc only ...
11 years, 1 month ago (2013-04-03 05:31:52 UTC) #8
yanivi
LGTM
11 years ago (2013-04-12 20:22:31 UTC) #9
yanivi
https://codereview.appspot.com/7925043/diff/58001/google-http-client/src/main/java/com/google/api/client/http/HttpIOExceptionHandler.java File google-http-client/src/main/java/com/google/api/client/http/HttpIOExceptionHandler.java (right): https://codereview.appspot.com/7925043/diff/58001/google-http-client/src/main/java/com/google/api/client/http/HttpIOExceptionHandler.java#newcode69 google-http-client/src/main/java/com/google/api/client/http/HttpIOExceptionHandler.java:69: boolean handle(HttpRequest request, boolean supportsRetry) throws IOException; naming question: ...
11 years ago (2013-04-12 20:52:04 UTC) #10
peleyal
Please review again - change 'handle' to 'handleIOException' as you suggested. https://codereview.appspot.com/7925043/diff/58001/google-http-client/src/main/java/com/google/api/client/http/HttpIOExceptionHandler.java File google-http-client/src/main/java/com/google/api/client/http/HttpIOExceptionHandler.java (right): ...
11 years ago (2013-04-15 15:28:00 UTC) #11
yanivi
LGTM
11 years ago (2013-04-16 03:03:03 UTC) #12
yanivi
I see lots of Eclipse warnings that need to be resolved. Put @Deprecated on ExponentialBackOffPolicyTest. ...
11 years ago (2013-04-16 03:34:06 UTC) #13
peleyal
Added tests to HttpRequestTest and deprecated old usages
11 years ago (2013-04-16 14:30:30 UTC) #14
yanivi
https://codereview.appspot.com/7925043/diff/91001/google-http-client/src/test/java/com/google/api/client/http/HttpRequestTest.java File google-http-client/src/test/java/com/google/api/client/http/HttpRequestTest.java (right): https://codereview.appspot.com/7925043/diff/91001/google-http-client/src/test/java/com/google/api/client/http/HttpRequestTest.java#newcode159 google-http-client/src/test/java/com/google/api/client/http/HttpRequestTest.java:159: @Override Sorry, this is a bug in the Eclipse ...
11 years ago (2013-04-16 15:47:45 UTC) #15
peleyal
https://codereview.appspot.com/7925043/diff/91001/google-http-client/src/test/java/com/google/api/client/http/HttpRequestTest.java File google-http-client/src/test/java/com/google/api/client/http/HttpRequestTest.java (right): https://codereview.appspot.com/7925043/diff/91001/google-http-client/src/test/java/com/google/api/client/http/HttpRequestTest.java#newcode159 google-http-client/src/test/java/com/google/api/client/http/HttpRequestTest.java:159: @Override On 2013/04/16 15:47:45, yanivi wrote: > Sorry, this ...
11 years ago (2013-04-16 18:11:16 UTC) #16
yanivi
https://codereview.appspot.com/7925043/diff/102001/google-http-client/src/main/java/com/google/api/client/http/HttpBackOffUnsuccessfulResponseHandler.java File google-http-client/src/main/java/com/google/api/client/http/HttpBackOffUnsuccessfulResponseHandler.java (right): https://codereview.appspot.com/7925043/diff/102001/google-http-client/src/main/java/com/google/api/client/http/HttpBackOffUnsuccessfulResponseHandler.java#newcode28 google-http-client/src/main/java/com/google/api/client/http/HttpBackOffUnsuccessfulResponseHandler.java:28: * Thread-safe back-off handler which handles abnormal HTTP request ...
11 years ago (2013-04-17 16:27:23 UTC) #17
peleyal
Done for both HttpBackOffUnsuccessfulReponseHandler and HttpBackOffIOExceptionHandler. https://codereview.appspot.com/7925043/diff/102001/google-http-client/src/main/java/com/google/api/client/http/HttpBackOffUnsuccessfulResponseHandler.java File google-http-client/src/main/java/com/google/api/client/http/HttpBackOffUnsuccessfulResponseHandler.java (right): https://codereview.appspot.com/7925043/diff/102001/google-http-client/src/main/java/com/google/api/client/http/HttpBackOffUnsuccessfulResponseHandler.java#newcode28 google-http-client/src/main/java/com/google/api/client/http/HttpBackOffUnsuccessfulResponseHandler.java:28: * Thread-safe back-off ...
11 years ago (2013-04-18 14:49:01 UTC) #18
yanivi
LGTM https://codereview.appspot.com/7925043/diff/131001/google-http-client/src/main/java/com/google/api/client/http/HttpBackOffUnsuccessfulResponseHandler.java File google-http-client/src/main/java/com/google/api/client/http/HttpBackOffUnsuccessfulResponseHandler.java (right): https://codereview.appspot.com/7925043/diff/131001/google-http-client/src/main/java/com/google/api/client/http/HttpBackOffUnsuccessfulResponseHandler.java#newcode30 google-http-client/src/main/java/com/google/api/client/http/HttpBackOffUnsuccessfulResponseHandler.java:30: * It is designed to work with only ...
11 years ago (2013-04-19 17:59:06 UTC) #19
peleyal
11 years ago (2013-04-19 18:09:29 UTC) #20
done.
Sign in to reply to this message.

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