Copied!

Middleware that adds retry functionality.

CloneableInstantiable
Methods
public __construct(callable $nextHandler, Google\ApiCore\RetrySettings $retrySettings, $deadlineMs = NULL, $retryAttempts = 0)
public __invoke(Google\ApiCore\Call $call, array $options)
 
  • param \Call $call
  • param array $options
  • return \PromiseInterface
Methods
protected getCurrentTimeMs()
Properties
private ?float $deadlineMs
private $nextHandler = NULL
 
  • var callable
private int $retryAttempts
private Google\ApiCore\RetrySettings $retrySettings
Methods
private getRetryFunction()
 

This is the default retry behaviour.

private retry(Google\ApiCore\Call $call, array $options, string $status)
 
  • param \Call $call
  • param array $options
  • param string $status
  • return \PromiseInterface
  • throws \ApiException
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration