Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
YukiMatsumura committed Mar 8, 2018
1 parent 021ed73 commit d43936a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ The following code delays the retry process with the Binary Exponential Backoff
retrofit.webapi()
.retryWhen(RxBackoff.exponential(2.0 /* Multiplier */ , 5 /* maxRetryCount */))
.subscribe(...)
```

The following code is a random interval algorithm(not backoff).

```java
// retry -> (wait 1~5000ms) -> retry -> (wait 1~5000ms) -> retry ...
retrofit.webapi()
.retryWhen(RxBackoff.random(1 /* low */, 5000 /* high */, 5 /* maxRetryCount */))
Expand Down

0 comments on commit d43936a

Please sign in to comment.