send

@PostExchange
abstract fun send(sendUri: URI, @RequestHeader(value = "Command-Type", required = false) commandType: String, @RequestBody command: Any, @RequestHeader(value = "Command-Wait-Stage", required = false) waitStage: CommandStage = CommandStage.PROCESSED, @RequestHeader(value = "Command-Wait-Context", required = false) waitContext: String? = null, @RequestHeader(value = "Command-Wait-Processor", required = false) waitProcessor: String? = null, @RequestHeader(value = "Command-Wait-Timout", required = false) waitTimeout: Long? = null, @RequestHeader(value = "Command-Tenant-Id", required = false) tenantId: String? = null, @RequestHeader(value = "Command-Aggregate-Id", required = false) aggregateId: String? = null, @RequestHeader(value = "Command-Aggregate-Version", required = false) aggregateVersion: Int? = null, @RequestHeader(value = "Command-Request-Id", required = false) requestId: String? = null, @RequestHeader(value = "Command-Local-First", required = false) localFirst: Boolean? = null, @RequestHeader(value = "Command-Aggregate-Context", required = false) context: String? = null, @RequestHeader(value = "Command-Aggregate-Name", required = false) aggregate: String? = null): RW


open fun send(commandRequest: CommandRequest): RB

Send a command request.

Throws

if the request fails