Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private delayDecider

delayDecider: DelayDecider

Private Readonly maxAttemptsProvider

maxAttemptsProvider: Provider<number>

mode

mode: string = RETRY_MODES.STANDARD

Private retryDecider

retryDecider: RetryDecider

Private retryQuota

retryQuota: RetryQuota

Methods

Private getMaxAttempts

  • getMaxAttempts(): Promise<number>

retry

  • retry<Input, Ouput>(next: FinalizeHandler<Input, Ouput>, args: FinalizeHandlerArguments<Input>, options?: { afterRequest: Function; beforeRequest: Function }): Promise<{ output: Ouput; response: unknown }>

Private shouldRetry

  • shouldRetry(error: SdkError, attempts: number, maxAttempts: number): boolean