1 #ifndef PROTON_CPP_MESSAGING_HANDLER_H
2 #define PROTON_CPP_MESSAGING_HANDLER_H
25 #include "proton/export.hpp"
27 #include "proton/pn_unique_ptr.hpp"
33 class messaging_adapter;
59 PN_CPP_EXTERN
handler(
int prefetch=10,
bool auto_accept=
true,
60 bool auto_settle=
true,
61 bool peer_close_is_error=
false);
65 PN_CPP_EXTERN
virtual ~handler();
126 PN_CPP_EXTERN
virtual void on_timer(
event &e);
137 pn_unique_ptr<messaging_adapter> messaging_adapter_;
149 #endif // PROTON_CPP_MESSAGING_HANDLER_H
virtual void on_link_open(event &e)
The remote peer opened the link.
A top-level container of connections, sessions, and links.
Definition: container.hpp:57
virtual void on_unhandled(event &e)
Fallback event handling.
virtual void on_delivery_reject(event &e)
The remote peer rejected an outgoing message.
A context for a proton event.
Definition: event.hpp:41
virtual void on_sendable(event &e)
A message can be sent.
virtual void on_transport_error(event &e)
The underlying network transport has closed with an error condition.
An interface for connection-oriented IO integration.
Definition: connection_engine.hpp:64
virtual void on_link_error(event &e)
The remote peer closed the link with an error condition.
virtual void on_transaction_declare(event &e)
The remote peer declared a transaction.
virtual void on_delivery_settle(event &e)
The remote peer settled an outgoing message.
virtual void on_link_close(event &e)
The remote peer closed the link.
virtual void on_session_error(event &e)
The remote peer closed the session with an error condition.
Options for creating a connection.
Definition: connection_options.hpp:60
Describes an endpoint error state.
Definition: condition.hpp:35
virtual void on_transaction_commit(event &e)
The remote peer committed a transaction.
virtual void on_message(event &e)
A message is received.
Callback functions for handling proton events.
Definition: handler.hpp:40
virtual void on_delivery_release(event &e)
The remote peer released an outgoing message.
virtual void on_delivery_accept(event &e)
The remote peer accepted an outgoing message.
virtual void on_transport_close(event &e)
The underlying network transport has closed.
Options for creating a link.
Definition: link_options.hpp:60
virtual void on_connection_error(event &e)
The remote peer closed the connection with an error condition.
virtual void on_start(event &e)
The event loop is starting.
virtual void on_session_open(event &e)
The remote peer opened the session.
virtual void on_unhandled_error(event &e, const condition &c)
Fallback error handling.
virtual void on_session_close(event &e)
The remote peer closed the session.
virtual void on_connection_close(event &e)
The remote peer closed the connection.
virtual void on_transaction_abort(event &e)
The remote peer aborted a transaction.
virtual void on_connection_open(event &e)
The remote peer opened the connection.