Details
-
Bug
-
Resolution: User Error
-
Major
-
None
-
5.0
Description
Public documentation about retry strategies from Java SDK:
Has wrong example Java code:
Functionality like this is a great candidate to be generic and encapsulated, so that's what we did with RetryBuilder. If you are already using Java 8, the code becomes more condensed as well:
SAMPLE_CODE
Here are the variations for linear, exponential and random delays:
Linear:
SAME_SAMPLE_CODE
Exponential:
SAME_SAMPLE_CODE
Random:
SAME_SAMPLE_CODE