RouteDecision class
Describes the routing decision for an enqueue request.
Constructors
- RouteDecision.broadcast({required BroadcastDefinition broadcast, RouteDefinition? route, int? priorityOverride})
- Creates a broadcast routing decision.
-
RouteDecision.queue({required QueueDefinition queue, String? selectedAlias, RouteDefinition? route, int? priorityOverride, Iterable<
QueueDefinition> fallbackQueues = const []}) - Creates a queue routing decision.
Properties
- broadcast → BroadcastDefinition?
-
Broadcast metadata when the decision targets a broadcast channel.
final
- broadcastChannel → String?
-
Broadcast channel name when targeting a broadcast.
final
-
fallbackQueues
→ List<
QueueDefinition> -
Additional fallback queues for the selection (primarily for default queue
aliasing).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBroadcast → bool
-
Whether this decision targets a broadcast channel.
no setter
- priorityOverride → int?
-
Priority override supplied by the matched route.
final
- queue → QueueDefinition?
-
Queue metadata when the decision targets a queue.
final
- route → RouteDefinition?
-
Matched route configuration, if any.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedQueueAlias → String?
-
Alias used to select the resolved queue (defaults to queue name).
final
- targetName → String
-
Canonical target name (queue or broadcast channel).
no setter
- type → RouteDecisionType
-
The type of target selected for the route.
final
Methods
-
effectivePriority(
int original) → int - Resolves the effective priority by applying overrides and queue ranges.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited