RetryFailedConfig
in package
This class is automatically generated to help in creating a config.
Table of Contents
Properties
- $_usedProperties : mixed
- $delay : mixed
- $enabled : mixed
- $httpCodes : mixed
- $jitter : mixed
- $maxDelay : mixed
- $maxRetries : mixed
- $multiplier : mixed
- $retryStrategy : mixed
Methods
- __construct() : mixed
- delay() : $this
- Time in ms to delay (or the initial value when multiplier is used)
- enabled() : $this
- httpCode() : HttpCodeConfig|$this
- jitter() : $this
- Randomness in percent (between 0 and 1) to apply to the delay
- 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: delay * (multiple ^ retries)
- retryStrategy() : $this
- service id to override the retry strategy
- toArray() : array<string|int, mixed>
Properties
$_usedProperties
private
mixed
$_usedProperties
= []
$delay
private
mixed
$delay
$enabled
private
mixed
$enabled
$httpCodes
private
mixed
$httpCodes
$jitter
private
mixed
$jitter
$maxDelay
private
mixed
$maxDelay
$maxRetries
private
mixed
$maxRetries
$multiplier
private
mixed
$multiplier
$retryStrategy
private
mixed
$retryStrategy
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
$thisenabled()
public
enabled(ParamConfigurator|bool $value) : $this
Parameters
- $value : ParamConfigurator|bool
Tags
Return values
$thishttpCode()
public
httpCode(string $code[, mixed $value = [] ]) : HttpCodeConfig|$this
Parameters
- $code : string
- $value : mixed = []
Return values
HttpCodeConfig|$thisjitter()
Randomness in percent (between 0 and 1) to apply to the delay
public
jitter(ParamConfigurator|float $value) : $this
Parameters
- $value : ParamConfigurator|float
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: delay * (multiple ^ retries)
public
multiplier(ParamConfigurator|float $value) : $this
Parameters
- $value : ParamConfigurator|float
Tags
Return values
$thisretryStrategy()
service id to override the retry strategy
public
retryStrategy(ParamConfigurator|mixed $value) : $this
Parameters
- $value : ParamConfigurator|mixed
Tags
Return values
$thistoArray()
public
toArray() : array<string|int, mixed>