Class Guzzle\Plugin\Backoff\TruncatedBackoffStrategy

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

Strategy that will not retry more than a certain number of times.

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$max int Maximum number of retries per request Guzzle\Plugin\Backoff\TruncatedBackoffStrategy
$next Guzzle\Plugin\Backoff\AbstractBackoffStrategy Next strategy in the chain Guzzle\Plugin\Backoff\AbstractBackoffStrategy

Property Details

$max protected property

Maximum number of retries per request

protected int $max null

Method Details

__construct() public method

public void __construct ( $maxRetries, Guzzle\Plugin\Backoff\BackoffStrategyInterface $next null )
$maxRetries int

Maximum number of retries per request

$next Guzzle\Plugin\Backoff\BackoffStrategyInterface

The optional next strategy

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 ( )