final class RetryBackoff

internal  
 

Methods

__construct(RetryPolicy $policy, Randomizer $randomizer = new Randomizer())

No description

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

Parameters

RetryPolicy $policy
Randomizer $randomizer

at line 26
float nextDelay(float|null $remainingSeconds = null)

Return the next jittered retry delay in seconds.

Parameters

float|null $remainingSeconds

Return Value

float

at line 50
void reset()

Reset the exponential retry sequence.

Return Value

void

at line 60
int checkpoint()

internal  
 

Capture the current retry sequence position.

Return Value

int

at line 70
void restore(int $checkpoint)

internal  
 

Restore a retry sequence position that was not published.

Parameters

int $checkpoint

Return Value

void

at line 78
float|null pushbackDelay(string|array $value)

Resolve a present retry-pushback header and reset the sequence.

Parameters

string|array $value

Return Value

float|null