1 #ifndef PROTON_CPP_LINK_OPTIONS_H
2 #define PROTON_CPP_LINK_OPTIONS_H
25 #include "proton/config.hpp"
26 #include "proton/export.hpp"
27 #include "proton/pn_unique_ptr.hpp"
29 #include "proton/terminus.hpp"
66 DELIVERY_MODE_NONE = 0,
79 UNSETTLED = PN_SND_UNSETTLED,
80 SETTLED = PN_SND_SETTLED,
87 enum receiver_settle_mode {
88 SETTLE_ALWAYS = PN_RCV_FIRST,
89 SETTLE_SECOND= PN_RCV_SECOND
96 LIFETIME_UNSPECIFIED = 0,
99 DELETE_ON_CLOSE = 0x2B,
102 DELETE_ON_NO_LINKS = 0x2C,
105 DELETE_ON_NO_MESSAGES = 0x2D,
109 DELETE_ON_NO_LINKS_OR_MESSAGES = 0x2E
164 PN_CPP_EXTERN
link_options& selector(
const std::string &str);
168 void apply(
link&)
const;
169 proton_handler*
handler()
const;
172 pn_unique_ptr<impl> impl_;
181 #endif // PROTON_CPP_LINK_OPTIONS_H
link_options & browsing(bool)
Receiver-only option to specify whether messages are browsed or consumed.
distribution_mode
Distribution mode.
Definition: terminus.hpp:72
A named channel for sending or receiving messages.
Definition: link.hpp:43
Defines C++ types representing AMQP types.
link_options & operator=(const link_options &)
Copy options.
link_options & dynamic_address(bool)
Request a dynamically generated node at the peer.
sender_settle_mode
Sender settlement behaviour for a link.
Definition: link_options.hpp:78
Callback functions for handling proton events.
Definition: handler.hpp:40
link_options & distribution_mode(enum terminus::distribution_mode)
Set the distribution mode for message transfer.
Options for creating a link.
Definition: link_options.hpp:60
link_options & durable_subscription(bool)
Receiver-only option to create a durable subsription on the receiver.
link_options & local_address(const std::string &addr)
Set the local address for the link.
link_options()
Create an empty set of options.
delivery_mode
The message delivery policy to establish when opening a link.
Definition: link_options.hpp:63
lifetime_policy
The lifetime of dynamically created nodes.
Definition: link_options.hpp:94