Open Journal Systems
3.3.0
|
Public Member Functions | |
getBackoffPeriod ( $retries, RequestInterface $request, Response $response=null, HttpException $e=null) | |
Strategy to determine if a request should be retried and how long to delay between retries
Definition at line 12 of file BackoffStrategyInterface.php.
Guzzle\Plugin\Backoff\BackoffStrategyInterface::getBackoffPeriod | ( | $retries, | |
RequestInterface | $request, | ||
Response | $response = null , |
||
HttpException | $e = null |
||
) |
Get the amount of time to delay in seconds before retrying a request
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 |
Implemented in Guzzle\Plugin\Backoff\AbstractBackoffStrategy.