aggregateVersion

abstract fun aggregateVersion(aggregateVersion: Int?): CommandBuilder

Sets the expected aggregate version for optimistic concurrency control.

Return

this builder for method chaining

Parameters

aggregateVersion

the expected version, or null to skip version checking

See also


abstract val aggregateVersion: Int?