AWS SDK for C++
0.14.3
AWS SDK for C++
|
#include <RetryStrategy.h>
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 |
Interface for defining a Retry Strategy. Override this class to provide your own custom retry behavior.
Definition at line 32 of file RetryStrategy.h.
|
inlinevirtual |
Definition at line 35 of file RetryStrategy.h.
|
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.
|
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.