...
- Link stealing hard
- association between Source, Target, and LinkEndpoint not explicit (no Link object). makes attaching logic complecated (see above) and hard to get right (threading, atomicity)
Design v2
In stead Instead of a LinkRegistry we introduce a LinkManager with expanded responsibilities.
...
The LinkEndpoint is the object that the session interacts and the consumer interact with.
This will have session related state (e.g., Map<delivery-ids, unsettled delivery state>).
...