From d43936a7c22ae3cbf97400158b9bd382f9610a72 Mon Sep 17 00:00:00 2001 From: Yuki Matsumura Date: Thu, 8 Mar 2018 21:59:25 +0900 Subject: [PATCH] update readme --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index a12c14c..defcda8 100644 --- a/README.md +++ b/README.md @@ -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 */))