MCPcopy Create free account
hub / github.com/alanxz/SimpleAmqpClient / AddToFrameQueue

Method AddToFrameQueue

src/ChannelImpl.cpp:438–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436}
437
438void Channel::ChannelImpl::AddToFrameQueue(const amqp_frame_t &frame) {
439 m_frame_queue.push_back(frame);
440
441 if (CheckForQueuedMessageOnChannel(frame.channel)) {
442 boost::array<amqp_channel_t, 1> channel = {{frame.channel}};
443 Envelope::ptr_t envelope;
444 if (!ConsumeMessageOnChannelInner(channel, envelope, -1)) {
445 throw std::logic_error(
446 "ConsumeMessageOnChannelInner returned false unexpectedly");
447 }
448
449 m_delivered_messages.push_back(envelope);
450 }
451}
452
453bool Channel::ChannelImpl::GetNextFrameFromBroker(
454 amqp_frame_t &frame, boost::chrono::microseconds timeout) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected