EventIdentifier

value class EventIdentifier : Comparable<EventIdentifier>

An EventIdentifier uniquely identifies events and their causality relationships in a distributed system. It offers the properties of a Lamport timestamp, with a unique site identifier for each client to disambiguate duplicate timestamps.

Parameters

packed

the packed value for this identifier.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open operator override fun compareTo(other: EventIdentifier): Int
Link copied to clipboard
operator fun component1(): SequenceNumber
Link copied to clipboard
operator fun component2(): SiteIdentifier
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val seqno: SequenceNumber
Link copied to clipboard
val site: SiteIdentifier

Extensions

Link copied to clipboard
val EventIdentifier.isSpecified: Boolean

false when this has SiteIdentifier.Unspecified or SequenceNumber.Unspecified.

Link copied to clipboard
val EventIdentifier.isUnspecified: Boolean

false when this has SiteIdentifier.Unspecified or SequenceNumber.Unspecified.

Link copied to clipboard
fun EventIdentifier.toULong(): ULong

Creates an ULong from an EventIdentifier.