Package com.azure.core.http.policy
Class RequestRetryCondition
java.lang.Object
com.azure.core.http.policy.RequestRetryCondition
Information about the request that failed, used to determine whether a retry should be attempted.
-
Method Summary
Modifier and TypeMethodDescriptionGets the HTTP response of the request that failed.Gets the unmodifiable list of throwables that have been encountered during retries.Gets the throwable of the request that failed.intGets the number of tries that have been attempted.
-
Method Details
-
getResponse
Gets the HTTP response of the request that failed.This may be null if the request failed with a throwable and no response was received.
- Returns:
- The HTTP response of the request that failed.
-
getThrowable
Gets the throwable of the request that failed.This may be null if the request failed with a response and no throwable was received.
- Returns:
- The throwable of the request that failed.
-
getTryCount
public int getTryCount()Gets the number of tries that have been attempted.- Returns:
- The number of tries that have been attempted.
-
getRetriedThrowables
Gets the unmodifiable list of throwables that have been encountered during retries.- Returns:
- The unmodifiable list of throwables that have been encountered during retries.
-