CommandType

class CommandType @InternalWowApi constructor(val name: String, val type: Class<*>, val aliases: Set<String> = emptySet())

How a command type is named: context.aggregate.CommandName, the class's simple name unless the model gives another. The log records it with each event stream, and a request id reused by a command of another name is rejected rather than taken for a retry; renaming or moving the class does not change it.

aliases are names the type had before (@Alias): a stream recorded under one of them is this command's, so a request retried after the rename is still a retry, and a command forwarded under a former name is still found.

Constructors

Link copied to clipboard
constructor(name: String, type: Class<*>, aliases: Set<String> = emptySet())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val type: Class<*>

Functions

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
fun isNamed(name: String): Boolean

Whether name is this type's name or one of its former names.

Link copied to clipboard
open override fun toString(): String