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

#include <SqlRetryPolicy.hpp>

Public Attributes

unsigned retriesSoFar = 0
 Number of retries already consumed. Zero on the first failure.
 
std::chrono::milliseconds delaySoFar { 0 }
 

Detailed Description

How far a retry loop has already got. Threaded through SqlRetryPolicy::Decide so the decision itself stays a pure function of its inputs.

Definition at line 55 of file SqlRetryPolicy.hpp.

Member Data Documentation

◆ retriesSoFar

unsigned Lightweight::SqlRetryState::retriesSoFar = 0

Number of retries already consumed. Zero on the first failure.

Definition at line 58 of file SqlRetryPolicy.hpp.

◆ delaySoFar

std::chrono::milliseconds Lightweight::SqlRetryState::delaySoFar { 0 }

Sum of the delays already waited out, checked against SqlRetrySettings::totalDelayBudget.

Definition at line 62 of file SqlRetryPolicy.hpp.


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