C# Class Amazon.S3.Internal.AmazonS3RetryPolicy

Inheritance: Amazon.Runtime.Internal.DefaultRetryPolicy
Show file Open project: aws/aws-sdk-net Class Usage Examples

Public Methods

Method Description
AmazonS3RetryPolicy ( IClientConfig config ) : Amazon.Runtime

Constructor for AmazonS3RetryPolicy.

RetryForException ( Runtime executionContext, Exception exception ) : bool

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

RetryForExceptionAsync ( Runtime executionContext, Exception exception ) : Task

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

RetryForExceptionSync ( Runtime executionContext, Exception exception ) : bool?

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

Method Details

AmazonS3RetryPolicy() public method

Constructor for AmazonS3RetryPolicy.
public AmazonS3RetryPolicy ( IClientConfig config ) : Amazon.Runtime
config IClientConfig The IClientConfig object
return Amazon.Runtime

RetryForException() public method

Return true if the request should be retried. Implements additional checks specific to S3 on top of the checks in DefaultRetryPolicy.
public RetryForException ( Runtime executionContext, Exception exception ) : bool
executionContext Runtime Request context containing the state of the request.
exception System.Exception The exception thrown by the previous request.
return bool

RetryForExceptionAsync() public method

Return true if the request should be retried. Implements additional checks specific to S3 on top of the checks in DefaultRetryPolicy.
public RetryForExceptionAsync ( Runtime executionContext, Exception exception ) : Task
executionContext Runtime Request context containing the state of the request.
exception System.Exception The exception thrown by the previous request.
return Task

RetryForExceptionSync() public method

Perform the processor-bound portion of the RetryForException logic. This is shared by the sync, async, and APM versions of the RetryForException method.
public RetryForExceptionSync ( Runtime executionContext, Exception exception ) : bool?
executionContext Runtime
exception System.Exception
return bool?