public class Retry extends Object
| Modifier and Type | Method and Description |
|---|---|
Long |
calculateSleepTime()
The sleep time based on back off factor.
|
Boolean |
isRetry(Integer statusCode)
Should Retry or not?.
|
void |
retryAttempted() |
void |
waitWithBackoff() |
public Retry(Integer total)
public Boolean isRetry(Integer statusCode)
statusCode - status code of last callpublic Long calculateSleepTime()
public void waitWithBackoff()
throws InterruptedException
InterruptedExceptionpublic void retryAttempted()
Copyright © 2022. All rights reserved.