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).
More...
#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 113 of file broker_interface.hpp.
◆ PublishReliable() [1/2]
virtual void urabbitmq::IReliableChannelInterface::PublishReliable |
( |
const Exchange & |
exchange, |
|
|
const std::string & |
routing_key, |
|
|
const std::string & |
message, |
|
|
engine::Deadline |
deadline |
|
) |
| |
|
pure virtual |
◆ PublishReliable() [2/2]
virtual void urabbitmq::IReliableChannelInterface::PublishReliable |
( |
const Exchange & |
exchange, |
|
|
const std::string & |
routing_key, |
|
|
const std::string & |
message, |
|
|
MessageType |
type, |
|
|
engine::Deadline |
deadline |
|
) |
| |
|
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
- Parameters
-
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.
The documentation for this class was generated from the following file: