Abstract Class Guzzle\Plugin\Backoff\AbstractErrorCodeBackoffStrategy

InheritanceGuzzle\Plugin\Backoff\AbstractErrorCodeBackoffStrategy » Guzzle\Plugin\Backoff\AbstractBackoffStrategy
ImplementsGuzzle\Plugin\Backoff\BackoffStrategyInterface
SubclassesGuzzle\Plugin\Backoff\CurlBackoffStrategy, Guzzle\Plugin\Backoff\HttpBackoffStrategy, Guzzle\Plugin\Backoff\ReasonPhraseBackoffStrategy

Strategy used to retry when certain error codes are encountered

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
getDelay() Implement the concrete strategy Guzzle\Plugin\Backoff\AbstractBackoffStrategy

Property Details

$defaultErrorCodes protected static property

Default cURL errors to retry

protected static array $defaultErrorCodes = []
$errorCodes protected property

Error codes that can be retried

protected array $errorCodes null

Method Details

__construct() public method

public void __construct ( array $codes null, Guzzle\Plugin\Backoff\BackoffStrategyInterface $next null )
$codes array

Array of codes that should be retried

$next Guzzle\Plugin\Backoff\BackoffStrategyInterface

The optional next strategy

getDefaultFailureCodes() public static method

Get the default failure codes to retry

public static array getDefaultFailureCodes ( )
makesDecision() public method

public void makesDecision ( )