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) {}
81 friend class internal::factory<
transfer>;
A connection to a remote AMQP peer.
Definition: connection.hpp:47
A top-level container of connections, sessions, and links.
Definition: container.hpp:49
A container of senders and receivers.
Definition: session.hpp:42
The base class for delivery and tracker.
Definition: transfer.hpp:40
void settle()
Settle the delivery; informs the remote end.
transfer()
Create an empty transfer.
Definition: transfer.hpp:47
class container & container() const
Return the container for this transfer.
class work_queue & work_queue() const
Get the work_queue for the transfer.
bool settled() const
Return true if the transfer has been settled.
state
Delivery state values.
Definition: transfer.hpp:50
@ RECEIVED
Received but not yet settled.
Definition: transfer.hpp:52
@ MODIFIED
Settled as modified.
Definition: transfer.hpp:56
@ ACCEPTED
Settled as accepted.
Definition: transfer.hpp:53
@ RELEASED
Settled as released.
Definition: transfer.hpp:55
@ NONE
Unknown state.
Definition: transfer.hpp:51
@ REJECTED
Settled as rejected.
Definition: transfer.hpp:54
Unsettled API - A context for thread-safe execution of work.
Definition: work_queue.hpp:327
The main Proton namespace.
Definition: annotation_key.hpp:33
std::string to_string(const message &)
Human readable string representation.
std::ostream & operator<<(std::ostream &, const binary &)
Print a binary value.