#include <userver/urabbitmq/broker_interface.hpp>
Reliable publisher interface for the broker. This class is merely an interface for convenience and you are not expected to use it directly (use Client
/ReliableChannel
instead).
Definition at line 133 of file broker_interface.hpp.
Public Member Functions | |
virtual void | PublishReliable (const Exchange &exchange, const std::string &routing_key, const std::string &message, MessageType type, engine::Deadline deadline)=0 |
Publish a message to an exchange and await confirmation from the broker. | |
virtual void | PublishReliable (const Exchange &exchange, const std::string &routing_key, const std::string &message, engine::Deadline deadline)=0 |
overload of PublishReliable | |
|
pure virtual |
overload of PublishReliable
Implemented in urabbitmq::ReliableChannel, and urabbitmq::Client.
|
pure virtual |
Publish a message to an exchange and await confirmation from the broker.
You have to supply the name of the exchange and a routing key. RabbitMQ will then try to send the message to one or more queues. By default unroutable messages are silently discarded
exchange | the exchange to publish to |
routing_key | the routing key |
message | the message to send |
deadline | execution deadline |
Implemented in urabbitmq::ReliableChannel, and urabbitmq::Client.