Class AmazonS3AdaptiveRetryPolicy
public class AmazonS3AdaptiveRetryPolicy : AdaptiveRetryPolicy
- Inheritance
-
AmazonS3AdaptiveRetryPolicy
Constructors
AmazonS3AdaptiveRetryPolicy(IClientConfig)
Constructor for AmazonS3AdaptiveRetryPolicy.
public AmazonS3AdaptiveRetryPolicy(IClientConfig config)
Parameters
config
IClientConfigThe 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
IExecutionContextRequest context containing the state of the request.
exception
ExceptionThe exception thrown by the previous request.
Returns
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
IExecutionContextexception
Exception
Returns
- bool?
a value if it can be determined, or null if the IO-bound calculations need to be done