Skip to content

Commit 6548be1

Browse files
committed
fix doc
Signed-off-by: Shoham Elias <[email protected]>
1 parent 5e98f49 commit 6548be1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

java/client/src/main/java/glide/api/models/configuration/BackoffStrategy.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88

99
/**
1010
* Represents the strategy used to determine how and when to reconnect, in case of connection
11-
* failures. The time between attempts grows exponentially, to the formula <code>rand(0 ... factor *
12-
* (exponentBase ^ N))</code>, where <code>N</code> is the number of failed attempts.
11+
* failures. The time between attempts grows exponentially, following the formula <code>
12+
* rand(0 ... factor *
13+
* (exponentBase ^ N))</code>, where <code>N</code> is the number of failed attempts, and <code>
14+
* rand(...)</code> applies a jitter of up to <code>jitterPercent</code>% to introduce randomness
15+
* and reduce retry storms.
1316
*
1417
* <p>Once the maximum value is reached, that will remain the time between retry attempts until a
1518
* reconnect attempt is successful. The client will attempt to reconnect indefinitely.

0 commit comments

Comments
 (0)