CommandInput

class CommandInput @InternalWowApi constructor(val type: CommandType, val body: Any, val aggregateId: String?, val headers: Map<String, String>, val requestId: String, val caller: Caller, val tenantId: String = caller.tenantId)

A request as a transformer sees it: decoded, before the command is built. Its identity may be incomplete: aggregateId is null when the request named none. The requestId, the caller and the tenantId the command runs in (the caller's, or the one the request targets) are only read: the command that runs keeps them.

Constructors

Link copied to clipboard
constructor(type: CommandType, body: Any, aggregateId: String?, headers: Map<String, String>, requestId: String, caller: Caller, tenantId: String = caller.tenantId)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val body: Any
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun copyWith(type: CommandType = this.type, body: Any = this.body, aggregateId: String? = this.aggregateId, headers: Map<String, String> = this.headers, requestId: String = this.requestId, caller: Caller = this.caller, tenantId: String = this.tenantId): CommandInput

This CommandInput with the given fields replaced: Wow's own copy, left out of the ABI.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String