class RetrySettings

Holds the parameters for retry and timeout logic with exponential backoff. Actual implementation of the logic is elsewhere.

The intent of these settings is to be used with a call to a remote server, which could either fail (and return an error code) or not respond (and cause a timeout). When there is a failure or timeout, the logic should keep trying until the total timeout has passed.

Methods

static 
inherit()

Create a special instance that indicates that the retry settings should be inherited from defaults.

__construct($retryableCodes, $backoffSettings)

Construct an instance.

getRetryableCodes()

No description

getBackoffSettings()

No description

shouldInherit()

No description

Details

at line 53
static inherit()

Create a special instance that indicates that the retry settings should be inherited from defaults.

at line 63
__construct($retryableCodes, $backoffSettings)

Construct an instance.

Parameters

$retryableCodes
$backoffSettings

at line 70
getRetryableCodes()

at line 75
getBackoffSettings()

at line 80
shouldInherit()