Configuration
in package
implements
ConfigurationInterface
Interfaces, Classes and Traits
- ConfigurationInterface
- Provides access to retry configuration
Table of Contents
- $maxAttempts : mixed
- $mode : mixed
- $validModes : mixed
- __construct() : mixed
- getMaxAttempts() : string
- Returns the maximum number of attempts that will be used for a request
- getMode() : string
- Returns the retry mode. Available modes include 'legacy', 'standard', and 'adapative'.
- toArray() : array<string|int, mixed>
- Returns the configuration as an associative array
Properties
$maxAttempts
private
mixed
$maxAttempts
$mode
private
mixed
$mode
$validModes
private
mixed
$validModes
= ['legacy', 'standard', 'adaptive']
Methods
__construct()
public
__construct([mixed $mode = 'legacy' ][, mixed $maxAttempts = 3 ]) : mixed
Parameters
- $mode : mixed = 'legacy'
- $maxAttempts : mixed = 3
Return values
mixed —getMaxAttempts()
Returns the maximum number of attempts that will be used for a request
public
getMaxAttempts() : string
Return values
string —getMode()
Returns the retry mode. Available modes include 'legacy', 'standard', and 'adapative'.
public
getMode() : string
Return values
string —toArray()
Returns the configuration as an associative array
public
toArray() : array<string|int, mixed>