void unsubscribe(proton::sender lnk) { std::string address = lnk.local_source().address(); if (queues_.get(address).unsubscribe(lnk)) { queues_.erase(address); } }
void on_sender_open(proton::sender &sender) override { if (sender.remote_source().dynamic()) { sender.local_source().address(generate_address()); senders[sender.local_source().address()] = sender; } }