Initially empty MVRegister.
Initially empty MVRegister.
Assigns a Registered value from v
and vectorTimestamp
and returns an updated MV-Register.
Assigns a Registered value from v
and vectorTimestamp
and returns an updated MV-Register.
assigned value.
vector timestamp of the assigned value.
system timestamp of the assigned value.
id of the value emitter.
Replicated LWW-Register with an MVRegister-based implementation. Instead of returning multiple values in case of concurrent assignments, the last written value is returned. The last written value is determined by comparing the following Registered fields in given order:
vectorTimestamp
: if causally related, return the value with the higher timestamp, otherwise comparesystemTimestamp
: if not equal, return the value with the higher timestamp, otherwise compareemitterId
Note that this relies on synchronized system clocks. LWWRegister should only be used when the choice of value is not important for concurrent updates occurring within the clock skew.
Initially empty MVRegister.
A comprehensive study of Convergent and Commutative Replicated Data Types