Class Guzzle\Plugin\Backoff\LinearBackoffStrategy

InheritanceGuzzle\Plugin\Backoff\LinearBackoffStrategy » Guzzle\Plugin\Backoff\AbstractBackoffStrategy

Implements a linear backoff retry strategy.

Warning: If no decision making strategies precede this strategy in the the chain, then all requests will be retried

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$next Guzzle\Plugin\Backoff\AbstractBackoffStrategy Next strategy in the chain Guzzle\Plugin\Backoff\AbstractBackoffStrategy
$step int Amount of time to progress each delay Guzzle\Plugin\Backoff\LinearBackoffStrategy

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
getDelay() Guzzle\Plugin\Backoff\LinearBackoffStrategy

Property Details

$step protected property

Amount of time to progress each delay

protected int $step null

Method Details

__construct() public method

public void __construct ( $step 1 )
$step int

Amount of time to increase the delay each additional backoff

getDelay() protected method

protected void getDelay ( $retries, Guzzle\Http\Message\RequestInterface $request, Guzzle\Http\Message\Response $response null, Guzzle\Http\Exception\HttpException $e null )
makesDecision() public method

public void makesDecision ( )