CommandBuilder

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val aggregateId: String?
Link copied to clipboard
abstract val aggregateVersion: Int?
Link copied to clipboard
abstract val body: Any
Link copied to clipboard
abstract val createTime: Long
Link copied to clipboard
abstract val header: Header
Link copied to clipboard
abstract val id: String
Link copied to clipboard
Link copied to clipboard
abstract val requestId: String?
Link copied to clipboard
abstract val tenantId: String?
Link copied to clipboard
abstract val upstream: DomainEvent<*>?

Functions

Link copied to clipboard
abstract fun aggregateId(aggregateId: String?): CommandBuilder

Aggregate Id

Link copied to clipboard
abstract fun aggregateVersion(aggregateVersion: Int?): CommandBuilder

Aggregate Version

Link copied to clipboard
abstract fun body(body: Any): CommandBuilder

Command Body

Link copied to clipboard
open fun <C> bodyAs(): C
Link copied to clipboard
abstract fun createTime(createTime: Long): CommandBuilder

Create Time

Link copied to clipboard
abstract fun header(customize: (header: Header) -> Unit): CommandBuilder
abstract fun header(header: Header): CommandBuilder

Header

Link copied to clipboard
abstract fun id(id: String): CommandBuilder

Command Message ID

Link copied to clipboard
open fun localFirst(localFirst: Boolean = true): CommandBuilder

Enable Local First mode?

Link copied to clipboard
abstract fun namedAggregate(namedAggregate: NamedAggregate): CommandBuilder

Named Aggregate

Link copied to clipboard
abstract fun requestId(requestId: String?): CommandBuilder

Request Id

Link copied to clipboard
Link copied to clipboard
abstract fun tenantId(tenantId: String?): CommandBuilder

Tenant Id

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun upstream(upstream: DomainEvent<*>): CommandBuilder