Open Journal Systems
3.3.0
|
Public Member Functions | |
makesDecision () | |
![]() | |
__construct (array $codes=null, BackoffStrategyInterface $next=null) | |
![]() | |
getBackoffPeriod ( $retries, RequestInterface $request, Response $response=null, HttpException $e=null) | |
getNext () | |
setNext (AbstractBackoffStrategy $next) | |
Protected Member Functions | |
getDelay ($retries, RequestInterface $request, Response $response=null, HttpException $e=null) | |
Additional Inherited Members | |
![]() | |
static | getDefaultFailureCodes () |
![]() | |
$errorCodes | |
![]() | |
$next | |
![]() | |
static | $defaultErrorCodes = array() |
Strategy used to retry HTTP requests when the response's reason phrase matches one of the registered phrases.
Definition at line 12 of file ReasonPhraseBackoffStrategy.php.
|
protected |
Implement the concrete strategy
int | $retries | Number of retries of the request |
RequestInterface | $request | Request that was sent |
Response | $response | Response that was received. Note that there may not be a response |
HttpException | $e | Exception that was encountered if any |
Reimplemented from Guzzle\Plugin\Backoff\AbstractBackoffStrategy.
Definition at line 19 of file ReasonPhraseBackoffStrategy.php.
Guzzle\Plugin\Backoff\ReasonPhraseBackoffStrategy::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\AbstractErrorCodeBackoffStrategy.
Definition at line 14 of file ReasonPhraseBackoffStrategy.php.