AWS SDK for C++  0.12.9
AWS SDK for C++
Public Member Functions | List of all members
Aws::Client::RetryStrategy Class Referenceabstract

#include <RetryStrategy.h>

Inheritance diagram for Aws::Client::RetryStrategy:
Aws::Client::DefaultRetryStrategy

Public Member Functions

virtual ~RetryStrategy ()
 
virtual bool ShouldRetry (const AWSError< CoreErrors > &error, long attemptedRetries) const =0
 
virtual long CalculateDelayBeforeNextRetry (const AWSError< CoreErrors > &error, long attemptedRetries) const =0
 

Detailed Description

Interface for defining a Retry Strategy. Override this class to provide your own custom retry behavior.

Definition at line 32 of file RetryStrategy.h.

Constructor & Destructor Documentation

virtual Aws::Client::RetryStrategy::~RetryStrategy ( )
inlinevirtual

Definition at line 35 of file RetryStrategy.h.

Member Function Documentation

virtual long Aws::Client::RetryStrategy::CalculateDelayBeforeNextRetry ( const AWSError< CoreErrors > &  error,
long  attemptedRetries 
) const
pure virtual

Calculates the time in milliseconds the client should sleep before attemptinig another request based on the error and attemptedRetries count.

Implemented in Aws::Client::DefaultRetryStrategy.

virtual bool Aws::Client::RetryStrategy::ShouldRetry ( const AWSError< CoreErrors > &  error,
long  attemptedRetries 
) const
pure virtual

Returns true if the error can be retried given the error and the number of times already tried.

Implemented in Aws::Client::DefaultRetryStrategy.


The documentation for this class was generated from the following file: