CommandId

interface CommandId

Represents a unique identifier for a command within the Wow framework's command handling system.

This interface ensures that each command can be uniquely identified, which is essential for:

  • Maintaining idempotency in command processing

  • Tracking and correlating commands across distributed systems

  • Preventing duplicate command execution

  • Debugging and auditing command flows

See also

for the complete command message interface that includes this identifier

Example usage:

class CreateUserCommand(override val commandId: String = UUID.randomUUID().toString()) : CommandId {
// command payload
}

Inheritors

Properties

Link copied to clipboard
abstract val commandId: String

A unique identifier for this command instance.