Qpid Proton C++ API
0.32.0
|
|
Go to the documentation of this file. 1 #ifndef PROTON_LINK_HPP
2 #define PROTON_LINK_HPP
26 #include "./internal/export.hpp"
28 #include "./internal/object.hpp"
42 PN_CPP_CLASS_EXTERN
link :
public internal::object<pn_link_t> ,
public endpoint {
44 link(pn_link_t* l) : internal::object<pn_link_t>(l) {}
49 link() : internal::object<pn_link_t>(0) {}
53 PN_CPP_EXTERN
bool closed()
const;
79 PN_CPP_EXTERN std::string
name()
const;
99 friend class internal::factory<
link>;
106 #endif // PROTON_LINK_HPP
Describes an endpoint error state.
Definition: error_condition.hpp:40
void detach()
Suspend the link without closing it.
class container & container() const
The container for this link.
The base Proton error.
Definition: error.hpp:41
A top-level container of connections, sessions, and links.
Definition: container.hpp:50
The base class for session, connection, and link.
Definition: endpoint.hpp:37
A connection to a remote AMQP peer.
Definition: connection.hpp:45
link()
Create an empty link.
Definition: link.hpp:49
void close()
Close the endpoint.
The base class for session, connection, and link.
void close(const error_condition &)
Close the endpoint with an error condition.
std::string name() const
Get the link name.
bool uninitialized() const
True if the local end is uninitialized.
bool draining()
Unsettled API - True for a receiver if a drain cycle has been started and the corresponding on_receiv...
bool active() const
True if the local end is active.
int credit() const
Credit available on the link.
class work_queue & work_queue() const
Get the work_queue for the link.
The main Proton namespace.
Definition: annotation_key.hpp:33
A named channel for sending or receiving messages.
Definition: link.hpp:42
A container of senders and receivers.
Definition: session.hpp:42
Unsettled API - A context for thread-safe execution of work.
Definition: work_queue.hpp:339