Open Monograph Press
3.3.0
|
Public Member Functions | |
__construct (array $codes=null, BackoffStrategyInterface $next=null) | |
makesDecision () | |
![]() | |
getBackoffPeriod ( $retries, RequestInterface $request, Response $response=null, HttpException $e=null) | |
getNext () | |
setNext (AbstractBackoffStrategy $next) | |
Static Public Member Functions | |
static | getDefaultFailureCodes () |
Protected Attributes | |
$errorCodes | |
![]() | |
$next | |
Static Protected Attributes | |
static | $defaultErrorCodes = array() |
Additional Inherited Members | |
![]() | |
getDelay ( $retries, RequestInterface $request, Response $response=null, HttpException $e=null) | |
Strategy used to retry when certain error codes are encountered
Definition at line 8 of file AbstractErrorCodeBackoffStrategy.php.
Guzzle\Plugin\Backoff\AbstractErrorCodeBackoffStrategy::__construct | ( | array | $codes = null , |
BackoffStrategyInterface | $next = null |
||
) |
array | $codes | Array of codes that should be retried |
BackoffStrategyInterface | $next | The optional next strategy |
Definition at line 23 of file AbstractErrorCodeBackoffStrategy.php.
References Guzzle\Plugin\Backoff\AbstractBackoffStrategy\$next.
|
static |
Get the default failure codes to retry
Definition at line 34 of file AbstractErrorCodeBackoffStrategy.php.
Referenced by Guzzle\Tests\Plugin\Backoff\HttpBackoffStrategyTest\testRetriesWhenCodeMatches(), Guzzle\Tests\Plugin\Backoff\ReasonPhraseBackoffStrategyTest\testRetriesWhenCodeMatches(), and Guzzle\Tests\Plugin\Backoff\CurlBackoffStrategyTest\testRetriesWithExponentialDelay().
Guzzle\Plugin\Backoff\AbstractErrorCodeBackoffStrategy::makesDecision | ( | ) |
Check if the strategy does filtering and makes decisions on whether or not to retry.
Strategies that return false will never retry if all of the previous strategies in a chain defer on a backoff decision.
Reimplemented from Guzzle\Plugin\Backoff\AbstractBackoffStrategy.
Reimplemented in Guzzle\Plugin\Backoff\ReasonPhraseBackoffStrategy.
Definition at line 39 of file AbstractErrorCodeBackoffStrategy.php.
|
staticprotected |
Default cURL errors to retry
Definition at line 12 of file AbstractErrorCodeBackoffStrategy.php.
|
protected |
Definition at line 17 of file AbstractErrorCodeBackoffStrategy.php.