AWS SDK for C++
1.8.129
AWS SDK for C++
|
#include <RetryStrategy.h>
Public Member Functions | |
virtual | ~RetryStrategy ()=default |
virtual bool | ShouldRetry (const AWSError< CoreErrors > &error, long attemptedRetries) const =0 |
virtual long | CalculateDelayBeforeNextRetry (const AWSError< CoreErrors > &error, long attemptedRetries) const =0 |
virtual long | GetMaxAttempts () const |
virtual void | GetSendToken () |
virtual void | RequestBookkeeping (const HttpResponseOutcome &) |
virtual void | RequestBookkeeping (const HttpResponseOutcome &, const AWSError< CoreErrors > &) |
Interface for defining a Retry Strategy. Override this class to provide your own custom retry behavior.
Definition at line 36 of file RetryStrategy.h.
|
virtualdefault |
|
pure virtual |
Calculates the time in milliseconds the client should sleep before attempting another request based on the error and attemptedRetries count.
Implemented in Aws::Client::StandardRetryStrategy, and Aws::Client::DefaultRetryStrategy.
|
inlinevirtual |
Gets max number of attempts allowed for an operation. Returns non positive value if not defined.
Reimplemented in Aws::Client::StandardRetryStrategy, and Aws::Client::DefaultRetryStrategy.
Definition at line 54 of file RetryStrategy.h.
|
inlinevirtual |
Retrives send tokens from the bucket.
Definition at line 59 of file RetryStrategy.h.
|
inlinevirtual |
Update status, like the information of retry quota when receiving a response.
Reimplemented in Aws::Client::StandardRetryStrategy.
Definition at line 64 of file RetryStrategy.h.
|
inlinevirtual |
Reimplemented in Aws::Client::StandardRetryStrategy.
Definition at line 65 of file RetryStrategy.h.
|
pure virtual |
Returns true if the error can be retried given the error and the number of times already tried.
Implemented in Aws::Client::SpecifiedRetryableErrorsRetryStrategy, Aws::Client::StandardRetryStrategy, and Aws::Client::DefaultRetryStrategy.