Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

38 rader
1.1 KiB

  1. #pragma once
  2. #include <string>
  3. #include <cppamqp/enums.h>
  4. #include <cppamqp/types.h>
  5. #include <cppamqp/config.h>
  6. #include <cppamqp/message.h>
  7. #include <cppamqp/connection.fwd.h>
  8. namespace cppamqp
  9. {
  10. struct consume_result
  11. {
  12. private:
  13. const connection& _connection;
  14. public:
  15. consume_result_type type;
  16. message message;
  17. channel_number channel;
  18. std::string consumer_tag;
  19. uint64_t delivery_tag;
  20. bool redelivered;
  21. std::string exchange;
  22. std::string routing_key;
  23. inline consume_result(const connection& p_connection, consume_result_type p_type);
  24. inline consume_result(const connection& p_connection, consume_result_type p_type, const amqp_message_t& p_message);
  25. inline consume_result(const connection& p_connection, const amqp_envelope_t& p_envelope);
  26. inline consume_result(consume_result&& other) = default;
  27. inline consume_result(const consume_result& other) = default;
  28. inline void ack();
  29. inline void nack(bool requeue);
  30. };
  31. }