Пример #1
0
TEST_F(connected_test, basic_ack_deliveryinfo) {
  const BasicMessage::ptr_t message = BasicMessage::Create("Message Body");
  std::string queue = channel->DeclareQueue("");
  channel->BasicPublish("", queue, message);

  std::string consumer = channel->BasicConsume(queue, "", true, false);

  Envelope::DeliveryInfo info;
  {
    Envelope::ptr_t env = channel->BasicConsumeMessage(consumer);
    info = env->GetDeliveryInfo();
  }

  channel->BasicAck(info);
}
Пример #2
0
void Channel::BasicAck(const Envelope::ptr_t &message)
{
    BasicAck(message->GetDeliveryInfo());
}
Пример #3
0
void Channel::BasicReject(const Envelope::ptr_t &message, bool requeue, bool multiple)
{
    BasicReject(message->GetDeliveryInfo(), requeue, multiple);
}