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

This retry strategy is almost identical to DefaultRetryStrategy, except it accepts a vector of error or exception names that you want to retry anyway (bypass the retryable definition of the error instance itself) if the retry attempts is less than maxRetries. More...

#include <SpecifiedRetryableErrorsRetryStrategy.h>

+ Inheritance diagram for Aws::Client::SpecifiedRetryableErrorsRetryStrategy:

Public Member Functions

 SpecifiedRetryableErrorsRetryStrategy (const Aws::Vector< Aws::String > &specifiedRetryableErrors, long maxRetries=10, long scaleFactor=25)
 
bool ShouldRetry (const AWSError< CoreErrors > &error, long attemptedRetries) const override
 
- Public Member Functions inherited from Aws::Client::DefaultRetryStrategy
 DefaultRetryStrategy (long maxRetries=10, long scaleFactor=25)
 
long CalculateDelayBeforeNextRetry (const AWSError< CoreErrors > &error, long attemptedRetries) const override
 
virtual long GetMaxAttempts () const override
 
- Public Member Functions inherited from Aws::Client::RetryStrategy
virtual ~RetryStrategy ()=default
 
virtual void GetSendToken ()
 
virtual void RequestBookkeeping (const HttpResponseOutcome &)
 
virtual void RequestBookkeeping (const HttpResponseOutcome &, const AWSError< CoreErrors > &)
 

Additional Inherited Members

- Protected Attributes inherited from Aws::Client::DefaultRetryStrategy
long m_scaleFactor
 
long m_maxRetries
 

Detailed Description

This retry strategy is almost identical to DefaultRetryStrategy, except it accepts a vector of error or exception names that you want to retry anyway (bypass the retryable definition of the error instance itself) if the retry attempts is less than maxRetries.

Definition at line 20 of file SpecifiedRetryableErrorsRetryStrategy.h.

Constructor & Destructor Documentation

◆ SpecifiedRetryableErrorsRetryStrategy()

Aws::Client::SpecifiedRetryableErrorsRetryStrategy::SpecifiedRetryableErrorsRetryStrategy ( const Aws::Vector< Aws::String > &  specifiedRetryableErrors,
long  maxRetries = 10,
long  scaleFactor = 25 
)
inline

Definition at line 23 of file SpecifiedRetryableErrorsRetryStrategy.h.

Member Function Documentation

◆ ShouldRetry()

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

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

Reimplemented from Aws::Client::DefaultRetryStrategy.


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