public interface RetryPolicy
RetryPolicy is responsible for providing policy and condition for retries.| Modifier and Type | Method and Description |
|---|---|
int |
getNextRetryIntervalMillis(RetryContext retryContext)
Calculates wait interval after which retry should happen in milliseconds.
|
boolean |
shouldRetry(RetryContext retryContext)
Decides whether retry should happen based on last response or last exception thrown.
|
boolean shouldRetry(RetryContext retryContext)
retryContext - An instance of RetryContextint getNextRetryIntervalMillis(RetryContext retryContext)
retryContext - An instance of RetryContextCopyright © 2021 HERE Europe B.V. All Rights Reserved.