Lightweight 0.20260921.0
Loading...
Searching...
No Matches
Lightweight::SqlRetryAttempt Struct Reference

#include <SqlRetryPolicy.hpp>

Public Attributes

unsigned retryNumber {}
 Which retry this is, counting from one.
 
unsigned maxRetries {}
 The configured budget, so an observer can render "retry 2/3" without holding the settings.
 
std::chrono::milliseconds delay {}
 How long the driver is about to sleep before re-running the operation.
 
SqlErrorInfo error
 The error that triggered the retry.
 

Detailed Description

Description of one retry about to happen, handed to a SqlRetryPolicy::RetryObserver.

Definition at line 118 of file SqlRetryPolicy.hpp.

Member Data Documentation

◆ retryNumber

unsigned Lightweight::SqlRetryAttempt::retryNumber {}

Which retry this is, counting from one.

Definition at line 121 of file SqlRetryPolicy.hpp.

Referenced by Lightweight::SqlRetryPolicy::Execute().

◆ maxRetries

unsigned Lightweight::SqlRetryAttempt::maxRetries {}

The configured budget, so an observer can render "retry 2/3" without holding the settings.

Definition at line 124 of file SqlRetryPolicy.hpp.

◆ delay

std::chrono::milliseconds Lightweight::SqlRetryAttempt::delay {}

How long the driver is about to sleep before re-running the operation.

Definition at line 127 of file SqlRetryPolicy.hpp.

◆ error

SqlErrorInfo Lightweight::SqlRetryAttempt::error

The error that triggered the retry.

Definition at line 130 of file SqlRetryPolicy.hpp.


The documentation for this struct was generated from the following file: