|
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 Protected Attributes inherited from Guzzle\Plugin\Backoff\AbstractErrorCodeBackoffStrategy | |
| static | $defaultErrorCodes = array() |
Additional Inherited Members | |
Public Member Functions inherited from Guzzle\Plugin\Backoff\AbstractErrorCodeBackoffStrategy | |
| __construct (array $codes=null, BackoffStrategyInterface $next=null) | |
| makesDecision () | |
Public Member Functions inherited from Guzzle\Plugin\Backoff\AbstractBackoffStrategy | |
| getBackoffPeriod ( $retries, RequestInterface $request, Response $response=null, HttpException $e=null) | |
| getNext () | |
| setNext (AbstractBackoffStrategy $next) | |
Static Public Member Functions inherited from Guzzle\Plugin\Backoff\AbstractErrorCodeBackoffStrategy | |
| static | getDefaultFailureCodes () |
Protected Attributes inherited from Guzzle\Plugin\Backoff\AbstractErrorCodeBackoffStrategy | |
| $errorCodes | |
Protected Attributes inherited from Guzzle\Plugin\Backoff\AbstractBackoffStrategy | |
| $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.