AWS SDK for C++AWS SDK for C++ Version 1.11.789 |
#include <RetryStrategy.h>
Interface for defining a Retry Strategy. Override this class to provide your own custom retry behavior.
Definition at line 38 of file RetryStrategy.h.
Calculates the time in milliseconds the client should sleep before attempting another request based on the error and attemptedRetries count.
Implemented in Aws::Client::DefaultRetryStrategy, and Aws::Client::StandardRetryStrategy.
Gets max number of attempts allowed for an operation. Returns non positive value if not defined.
Reimplemented in Aws::Client::DefaultRetryStrategy, and Aws::Client::StandardRetryStrategy.
Definition at line 56 of file RetryStrategy.h.
Retrieves send tokens from the bucket. Throws an exception if not available.
Definition at line 61 of file RetryStrategy.h.
Get return strategy name.
Reimplemented in Aws::Client::AdaptiveRetryStrategy, Aws::Client::DefaultRetryStrategy, and Aws::Client::StandardRetryStrategy.
Definition at line 81 of file RetryStrategy.h.
Retrieves send tokens from the bucket. Returns true is send token is retrieved.
Reimplemented in Aws::Client::AdaptiveRetryStrategy.
Definition at line 66 of file RetryStrategy.h.
Update status, like the information of retry quota when receiving a response.
Reimplemented in Aws::Client::AdaptiveRetryStrategy, and Aws::Client::StandardRetryStrategy.
Definition at line 75 of file RetryStrategy.h.
Reimplemented in Aws::Client::AdaptiveRetryStrategy, and Aws::Client::StandardRetryStrategy.
Definition at line 76 of file RetryStrategy.h.
Returns true if the error can be retried given the error and the number of times already tried.
Implemented in Aws::Client::DefaultRetryStrategy, Aws::Client::StandardRetryStrategy, and Aws::Client::SpecifiedRetryableErrorsRetryStrategy.