StateTypedEvent

interface StateTypedEvent<out S, out E : Any> : StateEvent<S>

One event of a committed stream, typed: the stream it belongs to, as a StateEvent, with its eventIndex-th event as event, an E. A handler that takes a StateTypedEvent<S, E> is called once for each event of the stream that is an E, in their order, all with the stream's state after the whole commit; a handler that takes an E itself is its shorthand. It is a view of the stream, not a copy: two are equal when their streams are and they are of the same event.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val event: E

The event, decoded: events[eventIndex].

Link copied to clipboard
abstract val eventIndex: Int

Where event is in events, from 0.