Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "src/retry/DefaultRetryConfig"

Index

Variables

Const SLEEP_BASE_MS

SLEEP_BASE_MS: number = 10

Const SLEEP_CAP_MS

SLEEP_CAP_MS: number = 5000

Const defaultRetryConfig

defaultRetryConfig: RetryConfig = new RetryConfig(4, defaultBackoffFunction)

Functions

Const defaultBackoffFunction

  • defaultBackoffFunction(retryAttempt: number, error: Error, transactionId: string): number
  • A default backoff function which returns the amount of time(in milliseconds) to delay the next retry attempt

    Parameters

    • retryAttempt: number

      The number of attempts done till now

    • error: Error

      The error that occurred while executing the previous transaction

    • transactionId: string

      The transaction Id for which the execution was attempted

    Returns number

Generated using TypeDoc