messaging_handler.hpp
Go to the documentation of this file.
#ifndef PROTON_MESSAGING_HANDLER_HPP
#define PROTON_MESSAGING_HANDLER_HPP
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
#include "./fwd.hpp"
#include "./internal/export.hpp"
namespace proton {
class
PN_CPP_CLASS_EXTERN messaging_handler {
public:
PN_CPP_EXTERN messaging_handler();
PN_CPP_EXTERN virtual ~messaging_handler();
PN_CPP_EXTERN virtual void on_container_start(container&);
PN_CPP_EXTERN virtual void on_container_stop(container&);
PN_CPP_EXTERN virtual void on_message(delivery&, message&);
PN_CPP_EXTERN virtual void on_sendable(sender&);
PN_CPP_EXTERN virtual void on_transport_open(transport&);
PN_CPP_EXTERN virtual void on_transport_close(transport&);
PN_CPP_EXTERN virtual void on_transport_error(transport&);
PN_CPP_EXTERN virtual void on_connection_open(connection&);
PN_CPP_EXTERN virtual void on_connection_close(connection&);
PN_CPP_EXTERN virtual void on_connection_error(connection&);
PN_CPP_EXTERN virtual void on_session_open(session&);
PN_CPP_EXTERN virtual void on_session_close(session&);
PN_CPP_EXTERN virtual void on_session_error(session&);
PN_CPP_EXTERN virtual void on_receiver_open(receiver&);
PN_CPP_EXTERN virtual void on_receiver_detach(receiver&);
PN_CPP_EXTERN virtual void on_receiver_close(receiver&);
PN_CPP_EXTERN virtual void on_receiver_error(receiver&);
PN_CPP_EXTERN virtual void on_sender_open(sender&);
PN_CPP_EXTERN virtual void on_sender_detach(sender&);
PN_CPP_EXTERN virtual void on_sender_close(sender&);
PN_CPP_EXTERN virtual void on_sender_error(sender&);
PN_CPP_EXTERN virtual void on_tracker_accept(tracker&);
PN_CPP_EXTERN virtual void on_tracker_reject(tracker&);
PN_CPP_EXTERN virtual void on_tracker_release(tracker&);
PN_CPP_EXTERN virtual void on_tracker_settle(tracker&);
PN_CPP_EXTERN virtual void on_delivery_settle(delivery&);
PN_CPP_EXTERN virtual void on_sender_drain_start(sender&);
PN_CPP_EXTERN virtual void on_receiver_drain_finish(receiver&);
PN_CPP_EXTERN virtual void on_connection_wake(connection&);
PN_CPP_EXTERN virtual void on_error(const error_condition&);
};
} // proton
#endif // PROTON_MESSAGING_HANDLER_HPP
proton::error_condition
Describes an endpoint error state.
Definition: error_condition.hpp:40
proton::tracker
A tracker for a sent message.
Definition: tracker.hpp:40
proton::container
A top-level container of connections, sessions, and links.
Definition: container.hpp:50
fwd.hpp
proton::connection
A connection to a remote AMQP peer.
Definition: connection.hpp:43
proton::receiver
A channel for receiving messages.
Definition: receiver.hpp:40
proton::delivery
A received message.
Definition: delivery.hpp:39
proton::messaging_handler
A handler for Proton messaging events.
Definition: messaging_handler.hpp:62
proton::sender
A channel for sending messages.
Definition: sender.hpp:39
proton::transport
A network channel supporting an AMQP connection.
Definition: transport.hpp:37
proton
The main Proton namespace.
Definition: annotation_key.hpp:33
proton::session
A container of senders and receivers.
Definition: session.hpp:41
proton::message
An AMQP message.
Definition: message.hpp:50