Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($maxRetries, BackoffStrategyInterface $next=null) | |
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 | |
$max | |
![]() | |
$next | |
Strategy that will not retry more than a certain number of times.
Definition at line 12 of file TruncatedBackoffStrategy.php.
Guzzle\Plugin\Backoff\TruncatedBackoffStrategy::__construct | ( | $maxRetries, | |
BackoffStrategyInterface | $next = null |
||
) |
int | $maxRetries | Maximum number of retries per request |
BackoffStrategyInterface | $next | The optional next strategy |
Definition at line 24 of file TruncatedBackoffStrategy.php.
References Guzzle\Plugin\Backoff\AbstractBackoffStrategy\$next.
|
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 35 of file TruncatedBackoffStrategy.php.
Guzzle\Plugin\Backoff\TruncatedBackoffStrategy::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 30 of file TruncatedBackoffStrategy.php.
|
protected |
Maximum number of retries per request
Definition at line 18 of file TruncatedBackoffStrategy.php.