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
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
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.