Microsoft Azure Storage Client Library for C++
7.5.0
The Microsoft Azure Storage Client Library for C++ is a library for working with the Azure Storage Services in C++.
|
Represents the context for one or more retries of a request made against the Windows Azure storage services, including the number of retries made for the request, the results of the last request, and the storage location and location mode for subsequent retries. More...
Public Member Functions | |
retry_context (int current_retry_count, request_result last_request_result, storage_location next_location, location_mode current_location_mode, const std::exception_ptr &nonstorage_exception=nullptr) | |
Initializes a new instance of the azure::storage::retry_context class. More... | |
int | current_retry_count () const |
Gets the number of retries for the given operation. More... | |
const request_result & | last_request_result () const |
Gets the results of the last request. More... | |
storage_location | next_location () const |
Gets the target location for the next retry. More... | |
location_mode | current_location_mode () const |
Gets the location mode for subsequent retries. More... | |
const std::exception_ptr & | nonstorage_exception () const |
Gets the exception_ptr of any unhandled nonstorage exception during the request. Example: WinHttp exceptions for timeout (12002) More... | |
Represents the context for one or more retries of a request made against the Windows Azure storage services, including the number of retries made for the request, the results of the last request, and the storage location and location mode for subsequent retries.
|
inline |
Initializes a new instance of the azure::storage::retry_context class.
current_retry_count | The current retry count. |
last_request_result | The last request result. |
next_location | The next location to retry. |
current_location_mode | The current location mode. |
nonstorage_exception | Exception Ptr of any exception other than storage_exception |
|
inline |
Gets the location mode for subsequent retries.
|
inline |
Gets the number of retries for the given operation.
|
inline |
Gets the results of the last request.
|
inline |
Gets the target location for the next retry.
|
inline |
Gets the exception_ptr of any unhandled nonstorage exception during the request. Example: WinHttp exceptions for timeout (12002)