Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($delay) | |
makesDecision () | |
![]() | |
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) | |
Protected Attributes | |
$delay | |
![]() | |
$next | |
Will retry the request using the same amount of delay for each retry.
Warning: If no decision making strategies precede this strategy in the the chain, then all requests will be retried
Definition at line 14 of file ConstantBackoffStrategy.php.
Guzzle\Plugin\Backoff\ConstantBackoffStrategy::__construct | ( | $delay | ) |
int | $delay | Amount of time to delay between each additional backoff |
Definition at line 23 of file ConstantBackoffStrategy.php.
References Guzzle\Plugin\Backoff\ConstantBackoffStrategy\$delay.
|
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 33 of file ConstantBackoffStrategy.php.
References Guzzle\Plugin\Backoff\ConstantBackoffStrategy\$delay.
Guzzle\Plugin\Backoff\ConstantBackoffStrategy::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.
Definition at line 28 of file ConstantBackoffStrategy.php.
|
protected |
Amount of time for each delay
Definition at line 20 of file ConstantBackoffStrategy.php.
Referenced by Guzzle\Plugin\Backoff\ConstantBackoffStrategy\__construct(), and Guzzle\Plugin\Backoff\ConstantBackoffStrategy\getDelay().