Open Journal Systems  3.3.0
ConstantBackoffStrategy.php
1 <?php
2 
3 namespace Guzzle\Plugin\Backoff;
4 
8 
15 {
17  protected $delay;
18 
20  public function __construct($delay)
21  {
22  $this->delay = $delay;
23  }
24 
25  public function makesDecision()
26  {
27  return false;
28  }
29 
30  protected function getDelay($retries, RequestInterface $request, Response $response = null, HttpException $e = null)
31  {
32  return $this->delay;
33  }
34 }
Guzzle\Plugin\Backoff\ConstantBackoffStrategy\getDelay
getDelay($retries, RequestInterface $request, Response $response=null, HttpException $e=null)
Definition: ConstantBackoffStrategy.php:33
Guzzle\Http\Message\RequestInterface
Definition: lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestInterface.php:16
Guzzle\Plugin\Backoff\AbstractBackoffStrategy
Definition: AbstractBackoffStrategy.php:12
Guzzle\Http\Exception\HttpException
Definition: lib/vendor/guzzle/guzzle/src/Guzzle/Http/Exception/HttpException.php:10
Guzzle\Http\Message\Response
Definition: lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/Response.php:17
Guzzle\Plugin\Backoff
Definition: AbstractBackoffStrategy.php:3
Guzzle\Plugin\Backoff\ConstantBackoffStrategy\makesDecision
makesDecision()
Definition: ConstantBackoffStrategy.php:28
Guzzle\Plugin\Backoff\ConstantBackoffStrategy
Definition: ConstantBackoffStrategy.php:14
Guzzle\Plugin\Backoff\ConstantBackoffStrategy\__construct
__construct($delay)
Definition: ConstantBackoffStrategy.php:23
Guzzle\Plugin\Backoff\ConstantBackoffStrategy\$delay
$delay
Definition: ConstantBackoffStrategy.php:20