Aster TypeScript 0.3.893
    Preparing search index...

    Class RetryInterceptor

    Automatic retry for idempotent methods.

    Implements

    Index

    Accessors

    • get maxAttempts(): number

      Total attempts allowed, including the first.

      Returns number

    Constructors

    Methods

    • Decide if a call should be retried. Returns true if the error is retryable, call is idempotent, and attempts remain.

      Parameters

      • error: RpcError
      • attempt: number
      • Optionalidempotent: boolean

      Returns boolean

    • Compute backoff duration in seconds for the given attempt number.

      Parameters

      • attempt: number

      Returns number