ChangeID

data class ChangeID(val clientSeq: UInt, val lamport: Long, val actor: ActorID, val versionVector: VersionVector, val serverSeq: Long = 0)

Identifies the Change.

Constructors

Link copied to clipboard
constructor(clientSeq: UInt, lamport: Long, actor: ActorID, versionVector: VersionVector, serverSeq: Long = 0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val serverSeq: Long = 0
Link copied to clipboard

Functions

Link copied to clipboard

Creates a ticket of the given delimiter.

Link copied to clipboard
fun next(): ChangeID

Creates a next ID of this ID.

Link copied to clipboard
fun setActor(actorID: ActorID): ChangeID

Sets the given actorID.

Link copied to clipboard
fun setClocks(otherLamport: Long, vector: VersionVector): ChangeID

setClocks sets the given clocks to this ID. This is used when the snapshot is given from the server.

Link copied to clipboard

Sets the vector vector.

Link copied to clipboard

syncClocks syncs logical clocks with the given ID.

Link copied to clipboard
fun syncLamport(otherLamport: Long): ChangeID

Syncs lamport timestamp with the given ID.