Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CrdtCounterImpl

Hierarchy

Implements

Index

Constructors

constructor

Properties

key

key: ApbBoundObject

parent

Methods

increment

  • increment(amount: number | Long): ApbUpdateOp
  • Creates an operation to increment the counter. Negative numbers will decrement the value. Use [[[[Connection.update]]]] to send the update to the database.

    Parameters

    • amount: number | Long

    Returns ApbUpdateOp

interpretReadResponse

  • interpretReadResponse(readResponse: ApbReadObjectResp): number

makeUpdate

  • makeUpdate(operation: ApbUpdateOperation): ApbUpdateOp

read

  • read(): Promise<number>

Generated using TypeDoc