Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • RetryConfig

Index

Constructors

constructor

  • Retry and Backoff config for Qldb Driver.

    throws

    RangeError if retryLimit is less than 0.

    Parameters

    • Default value retryLimit: number = 4

      When there is a failure while executing the transaction like OCC or any other retryable failure, the driver will try running your transaction block again. This parameter tells the driver how many times to retry when there are failures. The value must be greater than 0. The default value is 4. See https://docs.aws.amazon.com/qldb/latest/developerguide/driver.best-practices.html#driver.best-practices.configuring for more details.

    • Default value backoffFunction: BackoffFunction = defaultBackoffFunction

      A custom function that accepts a retry count, error, transaction id and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value the backoff will be considered to be zero. If no backoff function is provided then {@linkcode defaultBackoffFunction} will be used.

    Returns RetryConfig

Properties

Private _backoffFunction

_backoffFunction: BackoffFunction

Private _retryLimit

_retryLimit: number

Methods

getBackoffFunction

getRetryLimit

  • getRetryLimit(): number

Generated using TypeDoc