Documentation

RetryStrategyConfig
in package

This class is automatically generated to help in creating a config.

Table of Contents

Properties

$_usedProperties  : mixed
$delay  : mixed
$maxDelay  : mixed
$maxRetries  : mixed
$multiplier  : mixed
$service  : mixed

Methods

__construct()  : mixed
delay()  : $this
Time in ms to delay (or the initial value when multiplier is used)
maxDelay()  : $this
Max time in ms that a retry should ever be delayed (0 = infinite)
maxRetries()  : $this
multiplier()  : $this
If greater than 1, delay will grow exponentially for each retry: this delay = (delay * (multiple ^ retries))
service()  : $this
Service id to override the retry strategy entirely
toArray()  : array<string|int, mixed>

Properties

Methods

__construct()

public __construct([array<string|int, mixed> $value = [] ]) : mixed
Parameters
$value : array<string|int, mixed> = []

multiplier()

If greater than 1, delay will grow exponentially for each retry: this delay = (delay * (multiple ^ retries))

public multiplier(ParamConfigurator|float $value) : $this
Parameters
$value : ParamConfigurator|float
Tags
default

2

Return values
$this

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results