WireStamp class

Wire mirror of the runtime HLC stamp — a total order (wall_time, logical, peer) (protocol.md § Distributed).

All plain integers so the wire format is codec-stable whether or not a peer compiles the CRDT runtime in. Round-trips across JSON, MessagePack, and postcard. The runtime representation is HlcStamp in crdt.dart; this wire form never depends on the distributed feature.

Constructors

WireStamp({required int wallTime, required int logical, required int peer})
const

Properties

hashCode int
The hash code for this object.
no setteroverride
logical int
Logical counter advancing causality within equal wall_time.
final
peer int
Originating peer; final tiebreak so equal (wall, logical) is a total order.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wallTime int
Wall-clock microseconds since the Unix epoch.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
toWire() Map<String, Object>

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromWire(Object? value) WireStamp