Class Guzzle\Plugin\Backoff\ConstantBackoffStrategy

InheritanceGuzzle\Plugin\Backoff\ConstantBackoffStrategy » Guzzle\Plugin\Backoff\AbstractBackoffStrategy
ImplementsGuzzle\Plugin\Backoff\BackoffStrategyInterface

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

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$delay int Amount of time for each delay Guzzle\Plugin\Backoff\ConstantBackoffStrategy
$next Guzzle\Plugin\Backoff\AbstractBackoffStrategy Next strategy in the chain Guzzle\Plugin\Backoff\AbstractBackoffStrategy

Property Details

$delay protected property

Amount of time for each delay

protected int $delay null

Method Details

__construct() public method

public void __construct ( $delay )
$delay int

Amount of time to delay between 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 )
$retries
$request
$response
$e
makesDecision() public method

public void makesDecision ( )