Skip to main content

Module route_graph

Module route_graph 

Source
Expand description

Logical subscriptions and their transport realization.

Explicit receiver intent survives while no publication is attached. A current publication realizes as Absent -> Pending -> Committed. Current setup failures and receiver replacement return realization to Absent. Reservation IDs reject async completion after source detach or replacement.

logical subscription realization:
     publication attached
             |
             v
  +--------------------+  reserve setup
  | ConsumerRealization| ------------------> +-------------------------------+
  |      Absent        |                     | ConsumerRealization::Pending  |
  +--------------------+ <------------------ | (RouteReservationId)          |
             ^       setup fails/rejected    +-------------------------------+
             |                                                  |
             |              decline/replace                     v setup accepted
             +---------------------------------- +---------------------------------+
                                                 | ConsumerRealization::Committed  |
                                                 +---------------------------------+

Intent without a current publication keeps Subscription.current at None. Accepted setup requires a current identity and a successful transport declaration. Source detach returns to None while retaining intent. remove_receiver deletes the record and its intent.

Each receiver retains at most the room session limit of absent publisher targets. Sparse updates keep the target’s original age. A new target evicts every stream preference of the oldest absent target. Present members do not consume this allowance, including members with no publications. Joining promotes existing intent and departure enters the allowance as a new target.

StructsΒ§

CommittedConsumerRoute πŸ”’
Transport realization and adaptation hold share the exact route lifetime.
ConsumerRouteReservation
CurrentPublication πŸ”’
RouteGraph πŸ”’
RouteReservationId πŸ”’
Subscription πŸ”’

EnumsΒ§

ConsumerRealization πŸ”’

Type AliasesΒ§

Attached πŸ”’
A subscription with its receiver intent and the publication it follows.