RequestRetryCondition Class
- java.
lang. Object - com.
azure. core. http. policy. RequestRetryCondition
- com.
public final class RequestRetryCondition
Information about the request that failed, used to determine whether a retry should be attempted.
Method Summary
Modifier and Type | Method and Description |
---|---|
Http |
getResponse()
Gets the HTTP response of the request that failed. |
List<Throwable> |
getRetriedThrowables()
Gets the unmodifiable list of throwables that have been encountered during retries. |
Throwable |
getThrowable()
Gets the throwable of the request that failed. |
int |
getTryCount()
Gets the number of tries that have been attempted. |
Methods inherited from java.lang.Object
Method Details
getResponse
public HttpResponse 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:
getRetriedThrowables
public List
Gets the unmodifiable list of throwables that have been encountered during retries.
Returns:
getThrowable
public Throwable 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:
getTryCount
public int getTryCount()
Gets the number of tries that have been attempted.
Returns:
Applies to
Azure SDK for Java