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