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