Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CrdtFactory

A CRDT factory is used to create references to stored objects. These references are linked to the factory from which they were created.

There are three kind of factories: the Connection, Transactions and CrdtMaps.

Hierarchy

Implemented by

Index

Methods

counter

fatCounter

flag_dw

  • returns a reference to an disable-wins flag object

    Parameters

    • key: string

    Returns CrdtFlag

flag_ew

  • returns a reference to an enable-wins flag object

    Parameters

    • key: string

    Returns CrdtFlag

gmap

  • returns a reference to a grow-only map

    Parameters

    • key: string

    Returns CrdtMap

multiValueRegister

register

  • returns a reference to a last-writer-wins register

    Type parameters

    • T

    Parameters

    • key: string

    Returns CrdtRegister<T>

rrmap

  • returns a reference to a remove-resets map

    Parameters

    • key: string

    Returns CrdtMap

set

  • returns a reference to an add-wins set object

    Type parameters

    • T

    Parameters

    • key: string

    Returns CrdtSet<T>

set_removeWins

  • set_removeWins<T>(key: string): CrdtSet<T>
  • returns a reference to a remove-wins set object

    Type parameters

    • T

    Parameters

    • key: string

    Returns CrdtSet<T>

Generated using TypeDoc