CommandMessage

Properties

Link copied to clipboard
abstract override val aggregateId: AggregateId

target aggregate id

Link copied to clipboard
abstract val aggregateName: String

aggregate name.

Link copied to clipboard
abstract val aggregateVersion: Int?

expected aggregate version

Link copied to clipboard
abstract val allowCreate: Boolean
Link copied to clipboard
abstract val body: C
Link copied to clipboard
open override val commandId: String
Link copied to clipboard
abstract val contextName: String
Link copied to clipboard
abstract val createTime: Long
Link copied to clipboard
abstract val header: Header
Link copied to clipboard
abstract val id: String

id.

Link copied to clipboard
abstract val isCreate: Boolean

is the create aggregate command

Link copied to clipboard
Link copied to clipboard
abstract val name: String
Link copied to clipboard
abstract val requestId: String

Functions

Link copied to clipboard
abstract fun copy(): CommandMessage<C>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun withHeader(additionalSource: Map<String, String>): CommandMessage<C>

合并 header 并返回一个新的 Message.

open fun withHeader(key: String, value: String): CommandMessage<C>
Link copied to clipboard