Implements the Vector Clocks.
-
class
xotl.crdt.clocks.VClock(dots: Sequence[xotl.crdt.clocks.Dot] = None)[source]
-
bump(process)[source]
Return a new VC with the process’s counter increased.
-
merge(*others) → xotl.crdt.clocks.VClock[source]
Return the least possible common descendant.
-
reset()[source]
Reset the clock.
Basically forget about all the clock state.
-
class
xotl.crdt.clocks.Dot(process: xotl.crdt.base.Process, counter: int)[source]
A component on the vector clock.