ControlCommandMessage class

Control-plane command dispatched to worker control queues.

Available extensions

Constructors

ControlCommandMessage({required String requestId, required String type, required List<String> targets, Map<String, Object?>? payload, int? timeoutMs})
Creates a command message for worker control queues.
ControlCommandMessage.fromMap(Map<String, Object?> map)
Hydrates a control command from a serialized map payload.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
payload Map<String, Object?>
Arbitrary command payload.
final
requestId String
Correlation id used to match replies.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targets List<String>
Target worker identifiers or wildcards.
final
timeoutMs int?
Optional timeout for the command, in milliseconds.
final
type String
Command type identifier.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toEnvelope({required String queue, Map<String, String>? headers}) Envelope

Available on ControlCommandMessage, provided by the ControlCommandEnvelope extension

Encodes the command as an Envelope for dispatch.
toMap() Map<String, Object?>
Serializes the command into a map payload.
toString() String
A string representation of this object.
inherited

Operators

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