public interface RetryStrategy
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxRetries()
Get the maximum retry attempts
|
long |
getWaitTime(int retryCount,
int statusCode)
Return how long to wait until the next request
|
void |
setMaxRetries(int maxRetries)
Set the maximum retry attempts.
|
long getWaitTime(int retryCount,
int statusCode)
retryCount - The number of retries that have been attemptedstatusCode - The status code returned by the last attemptvoid setMaxRetries(int maxRetries)
maxRetries - The number of times to retry a failed requestint getMaxRetries()
Copyright © 2024. All rights reserved.