Class AmazonS3RetryPolicy
public class AmazonS3RetryPolicy : DefaultRetryPolicy
- Inheritance
-
AmazonS3RetryPolicy
Constructors
AmazonS3RetryPolicy(IClientConfig)
Constructor for AmazonS3RetryPolicy.
public AmazonS3RetryPolicy(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 DefaultRetryPolicy.
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