class RetryMiddleware implements MiddlewareInterface (View source)

Middleware that adds retry functionality.

Methods

__construct(callable $nextHandler, RetrySettings $retrySettings, $deadlineMs = null, $retryAttempts = 0)

No description

__invoke(Call $call, array $options)

No description

getCurrentTimeMs()

No description

Details

__construct(callable $nextHandler, RetrySettings $retrySettings, $deadlineMs = null, $retryAttempts = 0)

No description

Parameters

callable $nextHandler
RetrySettings $retrySettings
$deadlineMs
$retryAttempts

PromiseInterface|ClientStream|ServerStream|BidiStream __invoke(Call $call, array $options)

No description

Parameters

Call $call
array $options

Return Value

PromiseInterface|ClientStream|ServerStream|BidiStream

protected getCurrentTimeMs()

No description