LogEntry

class LogEntry @InternalWowApi constructor(val position: LogPosition, val stream: EventStreamRecord, val transport: ByteArray? = null)

A committed event stream at its position in the log, with the transport section appended with it, if any. Only EventLog.tail and EventLog.readEntries return entries: the transport serves the subscriptions and signals that read the log, never the domain.

transport is the bytes TransportCodec wrote, which a backend stores as they are and gives back unchanged: it never reads them, so a field a newer version added survives a backend that does not know it. The runtime reads them as decodedTransport.

Fields may be added: construct one with of; the constructor is internal to Wow.

Constructors

Link copied to clipboard
constructor(position: LogPosition, stream: EventStreamRecord, transport: ByteArray? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

transport decoded, once per entry however many subscriptions read it: Wow's own reading.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun copyWith(position: LogPosition = this.position, stream: EventStreamRecord = this.stream, transport: ByteArray? = this.transport): LogEntry

This LogEntry with the given fields replaced: Wow's own copy, left out of the ABI.

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