RetryBackoff
final class RetryBackoff
| internal |
Methods
float
nextDelay(float|null $remainingSeconds = null)
Return the next jittered retry delay in seconds.
void
reset()
Reset the exponential retry sequence.
int
checkpoint()
Capture the current retry sequence position.
void
restore(int $checkpoint)
Restore a retry sequence position that was not published.
float|null
pushbackDelay(string|array $value)
Resolve a present retry-pushback header and reset the sequence.
Details
at line 17
__construct(RetryPolicy $policy, Randomizer $randomizer = new Randomizer())
No description
at line 26
float
nextDelay(float|null $remainingSeconds = null)
Return the next jittered retry delay in seconds.
at line 50
void
reset()
Reset the exponential retry sequence.
at line 60
int
checkpoint()
| internal |
Capture the current retry sequence position.
at line 70
void
restore(int $checkpoint)
| internal |
Restore a retry sequence position that was not published.
at line 78
float|null
pushbackDelay(string|array $value)
Resolve a present retry-pushback header and reset the sequence.