Options
All
  • Public
  • Public/Protected
  • All
Menu
deprecated

[NOT RECOMMENDED] It is not recommended to use this class directly during transaction execution. Instead, please use QldbDriver.executeLambda to execute the transaction.

Hierarchy

  • QldbSessionImpl

Implements

Index

Constructors

constructor

Properties

Private _communicator

_communicator: Communicator

Private _isClosed

_isClosed: boolean

Private _retryLimit

_retryLimit: number

Methods

_abortOrClose

  • _abortOrClose(): Promise<boolean>

Private _calculateDelayTime

  • _calculateDelayTime(attemptNumber: number): number

Private _getRandomArbitrary

  • _getRandomArbitrary(min: number, max: number): number

Private _noThrowAbort

  • _noThrowAbort(transaction: Transaction): Promise<void>

Private _retrySleep

  • _retrySleep(attemptNumber: number): Promise<unknown>

Private _sleep

  • _sleep(sleepTime: number): Promise<unknown>

Private _throwIfClosed

  • _throwIfClosed(): void

close

  • close(): void

executeLambda

  • executeLambda(queryLambda: function, retryIndicator?: function): Promise<any>
  • deprecated

    [NOT RECOMMENDED] It is not recommended to use this method during transaction execution. Instead, please use QldbDriver.executeLambda to execute the transaction.

    Parameters

    • queryLambda: function
    • Optional retryIndicator: function
        • (retryAttempt: number): void
        • Parameters

          • retryAttempt: number

          Returns void

    Returns Promise<any>

getLedgerName

  • getLedgerName(): string

getSessionToken

  • getSessionToken(): string

getTableNames

  • getTableNames(): Promise<string[]>

startTransaction

Generated using TypeDoc