Class AmazonS3RetryPolicy
public class AmazonS3RetryPolicy : DefaultRetryPolicy
- Inheritance
-
AmazonS3RetryPolicy
Constructors
AmazonS3RetryPolicy(IClientConfig)
Constructor for AmazonS3RetryPolicy.
public AmazonS3RetryPolicy(IClientConfig config)
Parameters
configIClientConfigThe 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 DefaultRetryPolicy.
public override Task<bool> RetryForExceptionAsync(IExecutionContext executionContext, Exception exception)
Parameters
executionContextIExecutionContextRequest context containing the state of the request.
exceptionExceptionThe 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
executionContextIExecutionContextexceptionException
Returns
- bool?
a value if it can be determined, or null if the IO-bound calculations need to be done