Skip to main content

Interface: GrpcRetryOptions

client.GrpcRetryOptions

Properties

maxRetries

maxRetries: number

Maximum number of allowed retries. Defaults to 10.

Methods

delayFunction

delayFunction(attempt): number

A function which accepts the current retry attempt (starts at 0) and returns the millisecond delay that should be applied before the next retry.

Parameters

NameType
attemptnumber

Returns

number


retryableDecider

retryableDecider(status): boolean

A function which accepts a failed status object and returns true if the call should be retried

Parameters

NameType
statusStatusObject

Returns

boolean