send

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


open override fun send(commandRequest: CommandRequest): CommandResult

Send a command request.

Throws

if the request fails