public interface RetryPolicy
| Modifier and Type | Method and Description |
|---|---|
RetryDecision |
getRetryDecision(int currentRetryCount,
TransportException lastException)
Determines whether the operation should be retried and the interval until the next retry.
|
RetryDecision getRetryDecision(int currentRetryCount, TransportException lastException)
currentRetryCount - the number of retries for the given operationlastException - the latest exception explaining why the retry is happening. This exception is guaranteed to
be retryable. In the event of a terminal exception occurring, this API will not be called.
Looking at this exception allows you to prevent retry on certain retryable exceptions, but
does not allow you to retry exceptions that are terminal.Copyright © 2023. All rights reserved.