![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <HttpRetrySystem.h>
Public Member Functions | |
| HTTP_API bool | IsValid () const |
| HTTP_API float | Compute (uint32 RetryNumber) const |
Public Attributes | |
| float | Base = 2.0f |
| float | ExponentBias = 1.0f |
| float | MinCoefficient = 0.5f |
| float | MaxCoefficient = 1.0f |
| float | MaxBackoffSeconds = 60.0f |
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
| bool FHttpRetrySystem::FExponentialBackoffCurve::IsValid | ( | ) | const |
| float FHttpRetrySystem::FExponentialBackoffCurve::Base = 2.0f |
Exponential backoff base
| float FHttpRetrySystem::FExponentialBackoffCurve::ExponentBias = 1.0f |
Exponential backoff bias added to the current retry number
| float FHttpRetrySystem::FExponentialBackoffCurve::MaxBackoffSeconds = 60.0f |
Max back off seconds
| float FHttpRetrySystem::FExponentialBackoffCurve::MaxCoefficient = 1.0f |
Exponential backoff jitter coefficient maximum value. Defaults to half jitter
| float FHttpRetrySystem::FExponentialBackoffCurve::MinCoefficient = 0.5f |
Exponential backoff jitter coefficient minimum value. Defaults to half jitter