Vector Timestamp
data class VectorTimestamp<NodeId : Any, Timestamp : Comparable<Timestamp>>(val components: Map<NodeId, Timestamp>) : Comparable<VectorTimestamp<NodeId, Timestamp>>
A timestamp for use with VectorClock.
components is a map from node IDs to timestamps. The timestamp of a node is the number of events that have occurred on that node.
components must be non-empty.
This implementation is Comparable. Two instances of VectorTimestamp are considered equal if they are either identical or concurrent.
Functions
Link copied to clipboard
Two instances of VectorTimestamp are considered equal if they are either identical or concurrent.