SimpleCommandMessage

data class SimpleCommandMessage<C : Any>(val id: String = GlobalIdGenerator.generateAsString(), val header: Header = DefaultHeader.empty(), val body: C, val aggregateId: AggregateId, val requestId: String = id, val aggregateVersion: Int? = null, val name: String = body.javaClass.toName(), val isCreate: Boolean = false, val allowCreate: Boolean = false, val createTime: Long = System.currentTimeMillis()) : CommandMessage<C> , NamedAggregate

Constructors

Link copied to clipboard
constructor(id: String = GlobalIdGenerator.generateAsString(), header: Header = DefaultHeader.empty(), body: C, aggregateId: AggregateId, requestId: String = id, aggregateVersion: Int? = null, name: String = body.javaClass.toName(), isCreate: Boolean = false, allowCreate: Boolean = false, createTime: Long = System.currentTimeMillis())

Properties

Link copied to clipboard
open override val aggregateId: AggregateId
Link copied to clipboard
open override val aggregateName: String
Link copied to clipboard
open override val aggregateVersion: Int? = null
Link copied to clipboard
open override val allowCreate: Boolean = false
Link copied to clipboard
open override val body: C
Link copied to clipboard
open override val commandId: String
Link copied to clipboard
open override val contextName: String
Link copied to clipboard
open override val createTime: Long
Link copied to clipboard
open override val header: Header
Link copied to clipboard
open override val id: String
Link copied to clipboard
open override val isCreate: Boolean = false
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val requestId: String

Functions

Link copied to clipboard
fun NamedAggregate.aggregateId(id: String = generateId(), tenantId: String = TenantId.DEFAULT_TENANT_ID): DefaultAggregateId
Link copied to clipboard
Link copied to clipboard
open override fun copy(): CommandMessage<C>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun NamedBoundedContext.getContextAlias(boundedContext: BoundedContext? = MetadataSearcher.metadata.contexts[contextName]): String
Link copied to clipboard
Link copied to clipboard
open override fun isSameAggregateName(other: NamedAggregate): Boolean
Link copied to clipboard
Link copied to clipboard
fun Message<*, *>.match(function: FunctionInfo): Boolean
Link copied to clipboard
Link copied to clipboard
fun AggregateIdCapable.toGroupKey(parallelism: Int = DEFAULT_PARALLELISM): Int
Link copied to clipboard
Link copied to clipboard
open fun withHeader(additionalSource: Map<String, String>): CommandMessage<C>
open fun withHeader(key: String, value: String): CommandMessage<C>
Link copied to clipboard