Event

data class Event(    val seqno: SequenceNumber,     val site: SiteIdentifier,     val data: ByteArray) : Comparable<Event>

A class representing an Event. This will typically be used when a function should return a complete event, as well as its associated identifier.

You should prefer using some allocation-free functions for high-performance code.

Parameters

seqno

the SequenceNumber for this Event.

site

the SiteIdentifier for this Event.

data

the ByteArray that contains the Event body.

Constructors

Link copied to clipboard
fun Event(    seqno: SequenceNumber,     site: SiteIdentifier,     data: ByteArray)

Functions

Link copied to clipboard
open operator override fun compareTo(other: Event): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int

Properties

Link copied to clipboard
val data: ByteArray
Link copied to clipboard
val identifier: EventIdentifier

The EventIdentifier for this Event.

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