CommandEnvelop class

Envelope containing a command and its routing metadata.

Wraps commands with information needed to route them through the distributed system, including sender/receiver identities and reply channels.

Constructors

CommandEnvelop({required EntityId to, required EntityId from, required String commandId, required String type, required Map<String, dynamic> command, required ReplyFlow replyFlow, required ReplyClient replyClient})
Creates a command envelope with routing information.
CommandEnvelop.fromJson(Map<String, dynamic> json)
factory

Properties

command Map<String, dynamic>
JSON representation of the command payload.
final
commandId String
Unique identifier for tracking this specific command.
final
from String
Entity, service, or business process that sent this command.
final
hashCode int
The hash code for this object.
no setterinherited
replyClient ReplyClient
Information for routing replies back to clients.
final
replyFlow ReplyFlow
Information for routing replies back to business processes.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
to String
Target entity or service that should process this command.
final
type String
Command type name for deserialization (e.g., 'CreateUser', 'ProcessPayment').
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited