proton/messaging_handler.hpp

Go to the documentation of this file.
00001 #ifndef PROTON_MESSAGING_HANDLER_HPP
00002 #define PROTON_MESSAGING_HANDLER_HPP
00003 
00004 /*
00005  *
00006  * Licensed to the Apache Software Foundation (ASF) under one
00007  * or more contributor license agreements.  See the NOTICE file
00008  * distributed with this work for additional information
00009  * regarding copyright ownership.  The ASF licenses this file
00010  * to you under the Apache License, Version 2.0 (the
00011  * "License"); you may not use this file except in compliance
00012  * with the License.  You may obtain a copy of the License at
00013  *
00014  *   http://www.apache.org/licenses/LICENSE-2.0
00015  *
00016  * Unless required by applicable law or agreed to in writing,
00017  * software distributed under the License is distributed on an
00018  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
00019  * KIND, either express or implied.  See the License for the
00020  * specific language governing permissions and limitations
00021  * under the License.
00022  *
00023  */
00024 
00025 #include "./fwd.hpp"
00026 #include "./internal/export.hpp"
00027 
00030 
00031 namespace proton {
00032 
00062 class
00063 PN_CPP_CLASS_EXTERN messaging_handler {
00064   public:
00065     PN_CPP_EXTERN messaging_handler();
00066     PN_CPP_EXTERN virtual ~messaging_handler();
00067 
00072     PN_CPP_EXTERN virtual void on_container_start(container&);
00073 
00078     PN_CPP_EXTERN virtual void on_container_stop(container&);
00079 
00081     PN_CPP_EXTERN virtual void on_message(delivery&, message&);
00082 
00084     PN_CPP_EXTERN virtual void on_sendable(sender&);
00085 
00087     PN_CPP_EXTERN virtual void on_transport_open(transport&);
00088 
00090     PN_CPP_EXTERN virtual void on_transport_close(transport&);
00091 
00094     PN_CPP_EXTERN virtual void on_transport_error(transport&);
00095 
00097     PN_CPP_EXTERN virtual void on_connection_open(connection&);
00098 
00100     PN_CPP_EXTERN virtual void on_connection_close(connection&);
00101 
00103     PN_CPP_EXTERN virtual void on_connection_error(connection&);
00104 
00106     PN_CPP_EXTERN virtual void on_session_open(session&);
00107 
00109     PN_CPP_EXTERN virtual void on_session_close(session&);
00110 
00112     PN_CPP_EXTERN virtual void on_session_error(session&);
00113 
00115     PN_CPP_EXTERN virtual void on_receiver_open(receiver&);
00116 
00118     PN_CPP_EXTERN virtual void on_receiver_detach(receiver&);
00119 
00121     PN_CPP_EXTERN virtual void on_receiver_close(receiver&);
00122 
00124     PN_CPP_EXTERN virtual void on_receiver_error(receiver&);
00125 
00127     PN_CPP_EXTERN virtual void on_sender_open(sender&);
00128 
00130     PN_CPP_EXTERN virtual void on_sender_detach(sender&);
00131 
00133     PN_CPP_EXTERN virtual void on_sender_close(sender&);
00134 
00136     PN_CPP_EXTERN virtual void on_sender_error(sender&);
00137 
00139     PN_CPP_EXTERN virtual void on_tracker_accept(tracker&);
00140 
00142     PN_CPP_EXTERN virtual void on_tracker_reject(tracker&);
00143 
00145     PN_CPP_EXTERN virtual void on_tracker_release(tracker&);
00146 
00148     PN_CPP_EXTERN virtual void on_tracker_settle(tracker&);
00149 
00151     PN_CPP_EXTERN virtual void on_delivery_settle(delivery&);
00152 
00155     PN_CPP_EXTERN virtual void on_sender_drain_start(sender&);
00156 
00159     PN_CPP_EXTERN virtual void on_receiver_drain_finish(receiver&);
00160 
00176     PN_CPP_EXTERN virtual void on_connection_wake(connection&);
00177 
00179     PN_CPP_EXTERN virtual void on_error(const error_condition&);
00180 };
00181 
00182 } // proton
00183 
00184 #endif // PROTON_MESSAGING_HANDLER_HPP

Generated on 28 Nov 2017 for Qpid Proton C++ by  doxygen 1.6.1