1 #ifndef PROTON_TRANSFER_HPP 2 #define PROTON_TRANSFER_HPP 26 #include "./internal/export.hpp" 27 #include "./internal/object.hpp" 29 #include <proton/disposition.h> 40 class transfer :
public internal::object<pn_delivery_t> {
42 transfer(pn_delivery_t* d) : internal::object<pn_delivery_t>(d) {}
47 transfer() : internal::object<pn_delivery_t>(0) {}
75 PN_CPP_EXTERN
void settle();
78 PN_CPP_EXTERN
bool settled()
const;
81 friend class internal::factory<
transfer>;
92 #endif // PROTON_TRANSFER_HPP std::ostream & operator<<(std::ostream &, const binary &)
Print a binary value.
A top-level container of connections, sessions, and links.
Definition: container.hpp:50
Unknown state.
Definition: transfer.hpp:51
class work_queue & work_queue() const
Get the work_queue for the transfer.
std::string to_string(const message &)
Human readable string representation.
A connection to a remote AMQP peer.
Definition: connection.hpp:44
enum state state() const
Get the remote state for a delivery.
A container of senders and receivers.
Definition: session.hpp:41
transfer()
Create an empty transfer.
Definition: transfer.hpp:47
state
Delivery state values.
Definition: transfer.hpp:50
void settle()
Settle the delivery; informs the remote end.
The base class for delivery and tracker.
Definition: transfer.hpp:40
class container & container() const
Return the container for this transfer.
Settled as accepted.
Definition: transfer.hpp:53
Unsettled API - A context for thread-safe execution of work.
Definition: work_queue.hpp:339
Received but not yet settled.
Definition: transfer.hpp:52
Settled as rejected.
Definition: transfer.hpp:54
The main Proton namespace.
Definition: annotation_key.hpp:33
bool settled() const
Return true if the transfer has been settled.
Settled as released.
Definition: transfer.hpp:55
Settled as modified.
Definition: transfer.hpp:56