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
$_usedProperties
private
mixed
$_usedProperties
= []
$delay
private
mixed
$delay
$maxDelay
private
mixed
$maxDelay
$maxRetries
private
mixed
$maxRetries
$multiplier
private
mixed
$multiplier
$service
private
mixed
$service
Methods
__construct()
public
__construct([array<string|int, mixed> $value = [] ]) : mixed
Parameters
- $value : array<string|int, mixed> = []
delay()
Time in ms to delay (or the initial value when multiplier is used)
public
delay(ParamConfigurator|int $value) : $this
Parameters
- $value : ParamConfigurator|int
Tags
Return values
$thismaxDelay()
Max time in ms that a retry should ever be delayed (0 = infinite)
public
maxDelay(ParamConfigurator|int $value) : $this
Parameters
- $value : ParamConfigurator|int
Tags
Return values
$thismaxRetries()
public
maxRetries(ParamConfigurator|int $value) : $this
Parameters
- $value : ParamConfigurator|int
Tags
Return values
$thismultiplier()
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
Return values
$thisservice()
Service id to override the retry strategy entirely
public
service(ParamConfigurator|mixed $value) : $this
Parameters
- $value : ParamConfigurator|mixed
Tags
Return values
$thistoArray()
public
toArray() : array<string|int, mixed>