Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Backend

The backend must make the read and increase operations atomic (not executing parts of one in the middle of the other). This is to make sure the next operations are atomic:

  • update(x, v)
  • query(b) - query(a)

Hierarchy

  • Backend

Implemented by

Index

Properties

Properties

increase

increase: function

The backend must make sure that each increase operation is atomic

param

Type declaration

    • (queries: keyof IncreaseQuery[]): Promise<keyof any[]>
    • Parameters

      • queries: keyof IncreaseQuery[]

      Returns Promise<keyof any[]>

maximum

maximum: IndType

read

read: function

The backend must make sure that the whole execution of these queries is atomic. That is: we don't want an increase-operation to be executed sometime in the middle of executing these read queries.

param

Type declaration

    • (queries: keyof IndType[]): Promise<keyof ValType[]>
    • Parameters

      • queries: keyof IndType[]

      Returns Promise<keyof ValType[]>

Generated using TypeDoc