StateEvent

Represents a state event that combines domain event stream data with aggregate state. State events are used in event sourcing to capture both the event and the resulting state.

Type Parameters

S

the type of the state

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val eventId: String

The event ID, delegated to the id property.

Link copied to clipboard
open override val eventTime: Long

The time when the event occurred, delegated to createTime.

Link copied to clipboard
open override val operator: String

The operator who triggered the event, from the header.

Functions

Link copied to clipboard
abstract override fun copy(): StateEvent<S>

Creates a copy of this state event.