com.amazonaws.http.ExecutionContext.getAuthErrorRetryStrategy()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(94)

本文整理了Java中com.amazonaws.http.ExecutionContext.getAuthErrorRetryStrategy()方法的一些代码示例,展示了ExecutionContext.getAuthErrorRetryStrategy()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ExecutionContext.getAuthErrorRetryStrategy()方法的具体详情如下:
包路径:com.amazonaws.http.ExecutionContext
类名称:ExecutionContext
方法名:getAuthErrorRetryStrategy

ExecutionContext.getAuthErrorRetryStrategy介绍

[英]Returns the retry strategy for auth errors. This is currently only used by the S3 client for auto-resolving sigv4-required regions.

Note that this will be checked BEFORE the HTTP client consults the user-specified RetryPolicy. i.e. if the configured AuthErrorRetryStrategy says the request should be retried, the retry will be performed internally and the effect is transparent to the user's RetryPolicy.
[中]返回验证错误的重试策略。这目前仅由S3客户端用于自动解析sigv4所需的区域。
请注意,这将在HTTP客户端咨询用户指定的RetryPolicy之前进行检查。i、 e.如果配置的AuthErrorRetryStrategy表示应该重试请求,则将在内部执行重试,并且效果对用户的RetryPolicy是透明的。

代码示例

代码示例来源:origin: aws/aws-sdk-java

AuthErrorRetryStrategy authRetry = executionContext.getAuthErrorRetryStrategy();
if (authRetry != null && exception instanceof AmazonServiceException) {
  HttpResponse httpResponse = ApacheUtils.createResponse(request, execOneParams.apacheRequest, execOneParams.apacheResponse, localRequestContext);

代码示例来源:origin: com.amazonaws/aws-java-sdk-core

AuthErrorRetryStrategy authRetry = executionContext.getAuthErrorRetryStrategy();
if (authRetry != null && exception instanceof AmazonServiceException) {
  HttpResponse httpResponse = ApacheUtils.createResponse(request, execOneParams.apacheRequest, execOneParams.apacheResponse, localRequestContext);

代码示例来源:origin: Nextdoor/bender

AuthErrorRetryStrategy authRetry = executionContext.getAuthErrorRetryStrategy();
if (authRetry != null && exception instanceof AmazonServiceException) {
  HttpResponse httpResponse = createResponse(execOneParams.apacheRequest,

相关文章