AWS SDK for C++  0.14.3
AWS SDK for C++
Public Member Functions | List of all members
Aws::Client::DefaultRetryStrategy Class Reference

#include <DefaultRetryStrategy.h>

+ Inheritance diagram for Aws::Client::DefaultRetryStrategy:

Public Member Functions

 DefaultRetryStrategy (long maxRetries=10, long scaleFactor=25)
 
bool ShouldRetry (const AWSError< CoreErrors > &error, long attemptedRetries) const
 
long CalculateDelayBeforeNextRetry (const AWSError< CoreErrors > &error, long attemptedRetries) const
 
- Public Member Functions inherited from Aws::Client::RetryStrategy
virtual ~RetryStrategy ()
 

Detailed Description

Definition at line 26 of file DefaultRetryStrategy.h.

Constructor & Destructor Documentation

Aws::Client::DefaultRetryStrategy::DefaultRetryStrategy ( long  maxRetries = 10,
long  scaleFactor = 25 
)
inline

Definition at line 30 of file DefaultRetryStrategy.h.

Member Function Documentation

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

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

Implements Aws::Client::RetryStrategy.

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

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

Implements Aws::Client::RetryStrategy.


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