Class AbstractErrorCodeBackoffStrategy
Strategy used to retry when certain error codes are encountered
- Guzzle\Plugin\Backoff\AbstractBackoffStrategy implements Guzzle\Plugin\Backoff\BackoffStrategyInterface
-
Guzzle\Plugin\Backoff\AbstractErrorCodeBackoffStrategy
Direct known subclasses
Guzzle\Plugin\Backoff\CurlBackoffStrategy,
Guzzle\Plugin\Backoff\HttpBackoffStrategy,
Guzzle\Plugin\Backoff\ReasonPhraseBackoffStrategy
Abstract
Namespace: Guzzle\Plugin\Backoff
Located at Guzzle/Plugin/Backoff/AbstractErrorCodeBackoffStrategy.php
Namespace: Guzzle\Plugin\Backoff
Located at Guzzle/Plugin/Backoff/AbstractErrorCodeBackoffStrategy.php
Methods summary
-
public__construct ( array $codes = null, Guzzle\Plugin\Backoff\BackoffStrategyInterface $next = null ) -
public staticgetDefaultFailureCodes ( )Get the default failure codes to retry
-
publicmakesDecision ( )Check if the strategy does filtering and makes decisions on whether or not to retry.
Methods detail
#
public
__construct( array $codes = null, Guzzle\Plugin\Backoff\BackoffStrategyInterface $next = null )
Parameters
- $codes
array
$codes Array of codes that should be retried- $next
Guzzle\Plugin\Backoff\BackoffStrategyInterface
$next The optional next strategy
Get the default failure codes to retry
Returns
arrayCheck 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.
Returns
booleanMethods inherited from Guzzle\Plugin\Backoff\AbstractBackoffStrategy
getBackoffPeriod(),
getDelay(),
getNext(),
setNext()
Magic methods summary
Properties summary
protected static
array
|
$defaultErrorCodes |
#
Default cURL errors to retry |
protected
array
|
$errorCodes |
#
Error codes that can be retried |