...
- getLinkName() -> String
- getLocalContainerId() -> String
- getRemoteContainerId() -> String
- attach(Session s, Source s, Target t) -> Future<LinkEndpoint>
This must take care of link stealing (e.g., theifQueue).
This would probably also communicate with the localContainer to create necessary configuration changes (Queue/Consumer creation, etc.)
LinkEndpoint
The LinkEndpoint is the object that the session interacts with.
This will have session related state (e.g., Map<delivery-ids, unsettled delivery state>).
API
- detach() -> Future<?>
Probably needs to be async to support Link stealingDepending on how we implement Link stealing this might or might not have to be asynchronous - send-/receive(Flow, Transfer, Disposition)
...