MultiVersionRegister

rdts.datatypes.contextual.MultiVersionRegister
See theMultiVersionRegister companion object
case class MultiVersionRegister[A](repr: Map[Dot, A])

An MultiVersionRegister (Multi-Value Register) is a Delta CRDT modeling a register.

In the absence of concurrent writes, the MultiVersionRegister is either empty or holds one value. When multiple values are written concurrently, reading the MultiVersionRegister returns a set holding all these values.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Types

Value members

Concrete methods

def clear(): Delta
def read: Set[A]
def write(using LocalUid)(v: A)(using context: Dots): Delta

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product