executor_mq.hpp 462 B

123456789101112131415161718192021222324252627
  1. /*
  2. * @brief 该模块用于接收命令并执行命令, 然后将执行结果发送回发送着.
  3. */
  4. #pragma once
  5. #include "executor.hpp"
  6. #include "defines.hpp"
  7. class ExecutorRabbitmq: public Executor<ExecutorRabbitmq> {
  8. friend class SingletonIter<ExecutorRabbitmq>;
  9. public:
  10. Error_manager connect() {
  11. return Error_code::SUCCESS;
  12. }
  13. ~ExecutorRabbitmq() override = default;
  14. private:
  15. protected:
  16. ExecutorRabbitmq() = default;
  17. };