title: sgns::RetryConfig summary: Fixed retry/backoff schedule (D-12): 1s -> 2s -> (4s, never reached under the default cap of 3 attempts). Tests inject zeros for deterministic zero-backoff runs.
sgns::RetryConfig¶
Fixed retry/backoff schedule (D-12): 1s -> 2s -> (4s, never reached under the default cap of 3 attempts). Tests inject zeros for deterministic zero-backoff runs.
#include <PriceRetryPolicy.hpp>
Public Attributes¶
| Name | |
|---|---|
| int | maxAttempts |
| std::array< std::chrono::milliseconds, 3 > | backoffBeforeRetry Backoff waited BEFORE each retry, indexed by (attempt - 1). |
Public Attributes Documentation¶
variable maxAttempts¶
variable backoffBeforeRetry¶
std::array< std::chrono::milliseconds, 3 > backoffBeforeRetry { std::chrono::milliseconds( 1000 ),
std::chrono::milliseconds( 2000 ),
std::chrono::milliseconds( 4000 ) };
Backoff waited BEFORE each retry, indexed by (attempt - 1).
Index 2 (4s) is documented as the would-be next step that the default cap never consumes.
Updated on 2026-10-09 at 04:02:48 +0000