Navigation
API > API/Runtime > API/Runtime/HTTP
Model for computing exponential backoff using the formula: Base**(CurrentRetryAttempt + Bias) Then applying jitter to the backoff. Jitter application is performed by selecting a random value in the [Min, Max] range and multiplying it against the computed backoff. Half jitter can be implemented using { 0.5, 1.0 }, which becomes Backoff' = Backoff * Rand(0.5, 1.0) = Backoff/2 + Rand(0, Backoff/2) Full jitter can be implemented using { 0.0, 1.0 }, which becomes Backoff' = Backoff * Rand(0.0, 1.0) = Rand(0.0, Backoff) No jitter can be implemented using { 0.0, 0.0 } or any pair that where Min > Max. Backoff' = Backoff
| Name | FExponentialBackoffCurve |
| Type | struct |
| Header File | /Engine/Source/Runtime/Online/HTTP/Public/HttpRetrySystem.h |
| Include Path | #include "HttpRetrySystem.h" |
Syntax
struct FExponentialBackoffCurve
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Base | float | Exponential backoff base | HttpRetrySystem.h | |
| ExponentBias | float | Exponential backoff bias added to the current retry number | HttpRetrySystem.h | |
| MaxBackoffSeconds | float | Max back off seconds | HttpRetrySystem.h | |
| MaxCoefficient | float | Exponential backoff jitter coefficient maximum value. Defaults to half jitter | HttpRetrySystem.h | |
| MinCoefficient | float | Exponential backoff jitter coefficient minimum value. Defaults to half jitter | HttpRetrySystem.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float Compute
(
uint32 RetryNumber |
HttpRetrySystem.h | ||
bool IsValid() |
HttpRetrySystem.h |