Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Transaction

Hierarchy层级

  • Transaction

Index索引

Constructors构造函数

constructor

Properties属性

Optional _pinnedServer

_pinnedServer: Server
internal

Optional _recoveryToken

_recoveryToken: Document
internal

options

state

state: TxnState
internal

Accessors访问器

isActive

  • get isActive(): boolean
  • Returns返回boolean

    Whether this session is presently in a transaction

isCommitted

  • get isCommitted(): boolean

isPinned

  • get isPinned(): boolean

isStarting

  • get isStarting(): boolean

recoveryToken

  • get recoveryToken(): undefined | Document

server

  • get server(): undefined | Server

Methods方法

pinServer

  • pinServer(server: Server): void

transition

  • Transition the transaction in the state machine

    internal

    Parameters参数

    • nextState: TxnState

      The new state to transition to

    Returns返回void

unpinServer

  • unpinServer(): void

Generated using TypeDoc