RoutingInfo class

Routing metadata that accompanies published envelopes.

Queue routes include optional exchange/routing-key context plus a priority override. Broadcast routes reference a logical channel; brokers may map that to underlying transport semantics.

Constructors

RoutingInfo.broadcast({required String channel, String delivery = 'at-least-once', Map<String, Object?>? meta})
Creates a broadcast routing descriptor.
factory
RoutingInfo.fromJson(Map<String, Object?> json)
Parses routing metadata from JSON.
factory
RoutingInfo.queue({required String queue, String? exchange, String? routingKey, int? priority, Map<String, Object?>? meta})
Creates a queue-based routing descriptor.
factory

Properties

broadcastChannel String?
Broadcast channel identifier.
final
delivery String?
Delivery policy hint for broadcast routing.
final
exchange String?
Optional exchange name for queue routing.
final
hashCode int
The hash code for this object.
no setterinherited
isBroadcast bool
Whether this routing info targets a broadcast channel.
no setter
meta Map<String, Object?>
Additional routing metadata.
final
priority int?
Optional priority override for the published envelope.
final
queue String?
Queue name for queue routing.
final
routingKey String?
Optional routing key used by the broker.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type RoutingTargetType
The routing target type (queue or broadcast).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
Serializes this routing descriptor to JSON.
toString() String
A string representation of this object.
inherited

Operators

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