RetryPolicy Interface
public interface RetryPolicy
An interface for the retry policy.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
Retry |
getRetryDecision(int currentRetryCount, TransportException lastException)
Determines whether the operation should be retried and the interval until the next retry. |
Method Details
getRetryDecision
public abstract RetryDecision getRetryDecision(int currentRetryCount, TransportException lastException)
Determines whether the operation should be retried and the interval until the next retry.
Parameters:
currentRetryCount
- the number of retries for the given operation
lastException
- 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.
Returns:
the retry decision.
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for Java