MCPcopy Create free account
hub / github.com/apache/qpid-proton / boundQueue

Method boundQueue

cpp/examples/broker.cpp:212–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void Sender::boundQueue(Queue* q, std::string qn) {
213 DOUT(std::cerr << "Sender: " << this << " bound to Queue: " << q <<"(" << qn << ")\n";);
214 queue_ = q;
215 queue_name_ = qn;
216
217 sender_.open(proton::sender_options()
218 .source((proton::source_options().address(queue_name_)))
219 .handler(*this));
220 auto credit = pending_credit_;
221 q->add([=]{
222 q->subscribe(this);
223 if (credit>0) {
224 q->flow(this, credit);
225 }
226 });
227 std::cout << "sending from " << queue_name_ << std::endl;
228}
229
230class QueueManager;
231

Callers 1

findQueueMethod · 0.45

Calls 9

sender_optionsClass · 0.50
source_optionsClass · 0.50
openMethod · 0.45
handlerMethod · 0.45
sourceMethod · 0.45
addressMethod · 0.45
addMethod · 0.45
subscribeMethod · 0.45
flowMethod · 0.45

Tested by

no test coverage detected