Options for creating a sender. More...
#include <sender_options.hpp>
Public Member Functions | |
sender_options () | |
Create an empty set of options. | |
sender_options (const sender_options &) | |
Copy options. | |
sender_options & | operator= (const sender_options &) |
Copy options. | |
void | update (const sender_options &other) |
Merge with another option set. | |
sender_options & | handler (class messaging_handler &) |
Set a messaging_handler for sender events only. More... | |
sender_options & | delivery_mode (delivery_mode) |
Set the delivery mode on the sender. | |
sender_options & | auto_settle (bool) |
If True (default), automatically settle messages upon receiving a settled disposition for that delivery. More... | |
sender_options & | source (const source_options &) |
Options for the source node of the sender. | |
sender_options & | target (const target_options &) |
Options for the receiver node of the receiver. | |
sender_options & | name (const std::string &name) |
Set the link name. If not set a unique name is generated. | |
sender_options & | properties (const std::map< symbol, value > &) |
Unsettled API - Link properties. | |
Options for creating a sender.
Options can be "chained" like this:
You can also create an options object with common settings and use it as a base for different connections that have mostly the same settings:
Normal value semantics: copy or assign creates a separate copy of the options.
sender_options& handler | ( | class messaging_handler & | ) |
Set a messaging_handler for sender events only.
The handler is no longer in use when messaging_handler::on_sender_close() is called. messaging_handler::on_sender_close() may not be called if a connection is aborted, in that case it should be cleaned up in its connection's messaging_handler::on_transport_close()
sender_options& auto_settle | ( | bool | ) |
If True
(default), automatically settle messages upon receiving a settled disposition for that delivery.
Otherwise messages must be explicitly settled.