DefaultCommandStream

data class DefaultCommandStream(val domainEventId: String, commands: List<CommandMessage<*>>) : CommandStream, Iterable<CommandMessage<*>>

Default implementation of CommandStream that holds a list of command messages.

Constructors

Link copied to clipboard
constructor(domainEventId: String, commands: List<CommandMessage<*>>)

Properties

Link copied to clipboard
open override val domainEventId: String

The ID of the domain event that triggered this command stream.

Link copied to clipboard
open override val size: Int

The number of command messages in this stream.

Functions

Link copied to clipboard
open operator override fun iterator(): Iterator<CommandMessage<*>>
Link copied to clipboard

Sorts an iterable collection based on Order annotations and dependencies.