azure-core
Public Attributes | List of all members
Azure::Core::Http::Policies::RetryOptions Struct Referencefinal

The set of options that can be specified to influence how retry attempts are made, and a failure is eligible to be retried. More...

#include <policy.hpp>

Public Attributes

int32_t MaxRetries = 3
 The maximum number of retry attempts before giving up. More...
 
std::chrono::milliseconds RetryDelay = std::chrono::seconds(4)
 The minimum permissible delay between retry attempts. More...
 
std::chrono::milliseconds MaxRetryDelay = std::chrono::minutes(2)
 The maximum permissible delay between retry attempts. More...
 
std::set< HttpStatusCodeStatusCodes
 The HTTP status codes that indicate when an operation should be retried. More...
 

Detailed Description

Note
See https://azure.github.io/azure-sdk/general_azurecore.html#retry-policy.

Member Data Documentation

◆ MaxRetries

int32_t Azure::Core::Http::Policies::RetryOptions::MaxRetries = 3

◆ MaxRetryDelay

std::chrono::milliseconds Azure::Core::Http::Policies::RetryOptions::MaxRetryDelay = std::chrono::minutes(2)

◆ RetryDelay

std::chrono::milliseconds Azure::Core::Http::Policies::RetryOptions::RetryDelay = std::chrono::seconds(4)

◆ StatusCodes

std::set<HttpStatusCode> Azure::Core::Http::Policies::RetryOptions::StatusCodes

The documentation for this struct was generated from the following file:
Azure::Core::Http::HttpStatusCode::RequestTimeout
@ RequestTimeout
HTTP 408 Request Timeout.
Azure::Core::Http::HttpStatusCode::GatewayTimeout
@ GatewayTimeout
HTTP 504 Gateway Timeout.
Azure::Core::Http::HttpStatusCode::BadGateway
@ BadGateway
HTTP 502 Bad Gateway.
Azure::Core::Http::HttpStatusCode::ServiceUnavailable
@ ServiceUnavailable
HTTP 503 Unavailable.
Azure::Core::Http::HttpStatusCode::InternalServerError
@ InternalServerError
HTTP 500 Internal Server Error.