Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface StandardRetryToken

Hierarchy

Index

Methods

getLastRetryCost

  • getLastRetryCost(): number | undefined
  • Returns number | undefined

    the cost of the last retry attemp.

getRetryCount

  • getRetryCount(): number
  • Returns number

    the current count of retry.

getRetryDelay

  • getRetryDelay(): number
  • Returns number

    the number of milliseconds to wait before retrying an action.

getRetryTokenCount

  • Parameters

    Returns number

    the number of available tokens.

hasRetryTokens

  • Parameters

    Returns boolean

    wheather token has remaining tokens.

releaseRetryTokens

  • releaseRetryTokens(amount?: undefined | number): void
  • Releases a number of tokens.

    Parameters

    • Optional amount: undefined | number

      of tokens to release.

    Returns void