Google API Core Client - Class RetryMiddleware (1.36.0)

Reference documentation and code samples for the Google API Core Client class RetryMiddleware.

Middleware that adds retry functionality.

Namespace

Google \ ApiCore \ Middleware

Methods

__construct

Parameters
Name Description
nextHandler callable
retrySettings Google\ApiCore\RetrySettings
deadlineMs mixed
retryAttempts mixed

__invoke

Modify or observe the API call request and response.

Parameters
Name Description
call Google\ApiCore\Call
options array
Returns
Type Description
GuzzleHttp\Promise\PromiseInterface