12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- /*
- * @Author: yct 18202736439@163.com
- * @Date: 2022-09-30 18:11:59
- * @LastEditors: yct 18202736439@163.com
- * @LastEditTime: 2022-09-30 18:41:52
- * @FilePath: /puai_wj_2021/system/system_communication mq.cpp
- * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
- */
- //
- // Created by huli on 2020/6/28.
- //
- #include "system_communication_mq.h"
- #include "../system/system_executor.h"
- System_communication_mq::System_communication_mq()
- {
- }
- System_communication_mq::~System_communication_mq()
- {
- }
- //检查消息是否有效, 主要检查消息类型和接受者, 判断这条消息是不是给我的.
- Error_manager System_communication_mq::check_msg(Rabbitmq_message* p_msg)
- {
- return SUCCESS;
- }
- //检查执行者的状态, 判断能否处理这条消息, 需要子类重载
- Error_manager System_communication_mq::check_executer(Rabbitmq_message* p_msg)
- {
- return SUCCESS;
- }
- //处理消息, 需要子类重载
- Error_manager System_communication_mq::execute_msg(Rabbitmq_message* p_msg)
- {
- return SUCCESS;
- }
- //定时封装发送消息, 一般为心跳和状态信息, 需要子类重载
- Error_manager System_communication_mq::auto_encapsulate_status()
- {
- return System_executor::get_instance_references().encapsulate_send_mq_status();
- }
|