userver: urabbitmq::IChannelInterface Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
urabbitmq::IChannelInterface Class Referenceabstract

Publisher interface for the broker. This class is merely an interface for convenience and you are not expected to use it directly (use Client/Channel instead). More...

#include <userver/urabbitmq/broker_interface.hpp>

+ Inheritance diagram for urabbitmq::IChannelInterface:

Public Member Functions

virtual void Publish (const Exchange &exchange, const std::string &routing_key, const std::string &message, MessageType type, engine::Deadline deadline)=0
 Publish a message to an exchange.
 
virtual void Publish (const Exchange &exchange, const std::string &routing_key, const std::string &message, engine::Deadline deadline)=0
 overload of Publish
 

Detailed Description

Publisher interface for the broker. This class is merely an interface for convenience and you are not expected to use it directly (use Client/Channel instead).

Definition at line 82 of file broker_interface.hpp.

Member Function Documentation

◆ Publish() [1/2]

virtual void urabbitmq::IChannelInterface::Publish ( const Exchange exchange,
const std::string &  routing_key,
const std::string &  message,
engine::Deadline  deadline 
)
pure virtual

overload of Publish

Implemented in urabbitmq::Channel, and urabbitmq::Client.

◆ Publish() [2/2]

virtual void urabbitmq::IChannelInterface::Publish ( 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.

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
exchangethe exchange to publish to
routing_keythe routing key
messagethe message to send
deadlineexecution deadline
Note
This method is fire and forget (no delivery guarantees), use PublishReliable for delivery guarantees.

Implemented in urabbitmq::Channel, and urabbitmq::Client.


The documentation for this class was generated from the following file: