Options for creating a receiver. More...
#include <receiver_options.hpp>
Public Member Functions | |
receiver_options () | |
Create an empty set of options. | |
receiver_options (const receiver_options &) | |
Copy options. | |
receiver_options & | operator= (const receiver_options &) |
Copy options. | |
void | update (const receiver_options &other) |
Merge with another option set. | |
receiver_options & | handler (class messaging_handler &) |
Set a messaging_handler for receiver events only. More... | |
receiver_options & | delivery_mode (delivery_mode) |
Set the delivery mode on the receiver. More... | |
receiver_options & | auto_accept (bool) |
Enable or disable automatic acceptance of messages that aren't otherwise released, rejected, or modified. More... | |
receiver_options & | auto_settle (bool) |
Deprecated - Applicable only to sender, not receiver. | |
receiver_options & | source (source_options &) |
Options for the source node of the receiver. | |
receiver_options & | target (target_options &) |
Options for the target node of the receiver. | |
receiver_options & | credit_window (int count) |
Automatically replenish credit for flow control up to count messages. More... | |
receiver_options & | name (const std::string &name) |
Set the link name. If not set a unique name is generated. | |
receiver_options & | properties (const std::map< symbol, value > &) |
Unsettled API - Link properties. | |
Options for creating a receiver.
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.
receiver_options& handler | ( | class messaging_handler & | ) |
Set a messaging_handler for receiver events only.
The handler is no longer in use when messaging_handler::on_receiver_close() is called.
Set the delivery mode on the receiver.
The default is delivery_mode::AT_LEAST_ONCE.
receiver_options& auto_accept | ( | bool | ) |
Enable or disable automatic acceptance of messages that aren't otherwise released, rejected, or modified.
It is enabled by default.
receiver_options& credit_window | ( | int | count | ) |
Automatically replenish credit for flow control up to count
messages.
The default is 10. Set to zero to disable automatic replenishment.