Class TimeTicket

TimeTicket is a timestamp of the logical clock. Ticket is immutable. It is created by ChangeID.

Constructors

Properties

actorID: string
delimiter: number
lamport: Long

Methods

  • compare returns an integer comparing two Ticket. The result will be 0 if id==other, -1 if id < other, and +1 if id > other. If the receiver or argument is nil, it would panic at runtime.

    Parameters

    Returns number

  • toTestString returns a string containing the meta data of the ticket for debugging purpose.

    Returns string