Open Journal Systems
3.3.0
|
Protected Member Functions | |
getDelay ($retries, RequestInterface $request, Response $response=null, HttpException $e=null) | |
Static Protected Attributes | |
static | $defaultErrorCodes = array(500, 503) |
![]() | |
static | $defaultErrorCodes = array() |
Additional Inherited Members | |
![]() | |
__construct (array $codes=null, BackoffStrategyInterface $next=null) | |
makesDecision () | |
![]() | |
getBackoffPeriod ( $retries, RequestInterface $request, Response $response=null, HttpException $e=null) | |
getNext () | |
setNext (AbstractBackoffStrategy $next) | |
![]() | |
static | getDefaultFailureCodes () |
![]() | |
$errorCodes | |
![]() | |
$next | |
Strategy used to retry HTTP requests based on the response code.
Retries 500 and 503 error by default.
Definition at line 14 of file HttpBackoffStrategy.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 HttpBackoffStrategy.php.
|
staticprotected |
Definition at line 17 of file HttpBackoffStrategy.php.