你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈