Package-level declarations

Types

Link copied to clipboard
value class ActorID(val value: String) : Comparable<ActorID>

ActorID is used to identify who is making changes to the document. It is a hexadecimal string and should be generated by a unique value.

Link copied to clipboard
data class TimeTicket(val lamport: Long, val delimiter: UInt, val actorID: ActorID) : Comparable<TimeTicket> , JsonSerializable<TimeTicket, TimeTicketStruct>

TimeTicket is a timestamp of the logical clock. Ticket is immutable.

Link copied to clipboard
data class VersionVector(val vectorMap: MutableMap<String, Long> = mutableMapOf())

VersionVector is a vector clock used to detect relationships between changes, determining whether they are causally related or concurrent. It is similar to vector clocks but synced with the Lamport timestamp of the change.