Table of Contents

Class AmazonS3AdaptiveRetryPolicy

Namespace
Amazon.S3.Internal
Assembly
AWSSDK.S3.dll
public class AmazonS3AdaptiveRetryPolicy : AdaptiveRetryPolicy
Inheritance
AmazonS3AdaptiveRetryPolicy

Constructors

AmazonS3AdaptiveRetryPolicy(IClientConfig)

Constructor for AmazonS3AdaptiveRetryPolicy.

public AmazonS3AdaptiveRetryPolicy(IClientConfig config)

Parameters

config IClientConfig

The IClientConfig object

Methods

RetryForExceptionAsync(IExecutionContext, Exception)

Return true if the request should be retried. Implements additional checks specific to S3 on top of the checks in AdaptiveRetryPolicy.

public override Task<bool> RetryForExceptionAsync(IExecutionContext executionContext, Exception exception)

Parameters

executionContext IExecutionContext

Request context containing the state of the request.

exception Exception

The exception thrown by the previous request.

Returns

Task<bool>

Return true if the request should be retried.

RetryForExceptionSync(IExecutionContext, Exception)

Perform the processor-bound portion of the RetryForException logic. This is shared by the sync, async, and APM versions of the RetryForException method.

public bool? RetryForExceptionSync(IExecutionContext executionContext, Exception exception)

Parameters

executionContext IExecutionContext
exception Exception

Returns

bool?

a value if it can be determined, or null if the IO-bound calculations need to be done