bool unsubscribe(proton::sender &c) { consumers.remove(c.ptr()); return (consumers.size() == 0 && (dynamic || messages.size() == 0)); }
void subscribe(proton::sender &c) { consumers.push_back(c.ptr()); }