1 #ifndef PROTON_CPP_TERMINUS_H
2 #define PROTON_CPP_TERMINUS_H
25 #include "proton/export.hpp"
26 #include "proton/object.hpp"
27 #include "proton/value.hpp"
29 #include "proton/link.h"
50 TYPE_UNSPECIFIED = PN_UNSPECIFIED,
58 NONDURABLE = PN_NONDURABLE,
59 CONFIGURATION = PN_CONFIGURATION,
60 DELIVERIES = PN_DELIVERIES
65 EXPIRE_WITH_LINK = PN_EXPIRE_WITH_LINK,
66 EXPIRE_WITH_SESSION = PN_EXPIRE_WITH_SESSION,
67 EXPIRE_WITH_CONNECTION = PN_EXPIRE_WITH_CONNECTION,
68 EXPIRE_NEVER = PN_EXPIRE_NEVER
73 MODE_UNSPECIFIED = PN_DIST_MODE_UNSPECIFIED,
74 COPY = PN_DIST_MODE_COPY,
75 MOVE = PN_DIST_MODE_MOVE
79 PN_CPP_EXTERN
enum type type()
const;
92 PN_CPP_EXTERN uint32_t timeout()
const;
93 PN_CPP_EXTERN
void timeout(uint32_t seconds);
109 PN_CPP_EXTERN std::string
address()
const;
112 PN_CPP_EXTERN
void address(
const std::string &);
115 PN_CPP_EXTERN
bool dynamic()
const;
118 PN_CPP_EXTERN
void dynamic(
bool);
137 pn_terminus_t* object_;
138 value properties_, filter_;
143 #endif // PROTON_CPP_TERMINUS_H
Transaction coordinator.
Definition: terminus.hpp:53
type
Type of terminus.
Definition: terminus.hpp:49
distribution_mode
Distribution mode.
Definition: terminus.hpp:72
One end of a link, either a source or a target.
Definition: terminus.hpp:42
enum distribution_mode distribution_mode() const
Get the distribution mode.
expiry_policy
Expiry policy.
Definition: terminus.hpp:64
value & filter()
Obtain a reference to the AMQP filter set for the terminus.
enum type type() const
Get the terminus type.
durability
Durability.
Definition: terminus.hpp:57
A holder for an AMQP value.
Definition: value.hpp:33
std::string address() const
Get the source or target address.
value & node_properties()
Obtain a reference to the AMQP dynamic node properties for the terminus.
enum expiry_policy expiry_policy() const
Get the expiration policy.
enum durability durability()
Get the durability flag.
bool dynamic() const
True if the remote node is created dynamically.