Change ID
Identifies the Change.
Parameters
: is the sequence number of the client that created this change.
: lamport` is the lamport clock of this change. This is used to determine the order of changes in logical time. It is optional and only present if the change has operations.
: is the creator of this change.
: is the vector clock of this change. This is used to determine the relationship is causal or not between changes. It is optional and only present if the change has operations.
: is optional and only present for changes stored on the server.
Constructors
Functions
Creates a ticket of the given delimiter.
setClocks sets the given clocks to this ID. This is used when the snapshot is given from the server.
setLamport sets the given lamport clock.
Sets the vector vector.
syncClocks syncs logical clocks with the given ID.
Advances the lamport clock against the given ID without merging its version vector into the receiver's. It is the counterpart of syncClocks for attachments that have opted out of GC participation: the receiver does not need other actors' entries in its version vector because it never produces or consumes tombstones, and dropping them keeps each subsequent local Change's version vector at O(1) instead of O(num_actors). Lamport must still advance so that TimeTickets produced locally remain ordered against remote operations.
Syncs lamport timestamp with the given ID.