交换机管理模块,定义了交换机的结构、持久化以及内存管理功能 更多...
#include "../common/logger.hpp"
#include "../common/helper.hpp"
#include "../common/msg.pb.h"
#include <iostream>
#include <unordered_map>
#include <mutex>
#include <memory>
类 | |
struct | XuMQ::Exchange |
交换机结构体对象 更多... | |
class | XuMQ::ExchangeMapper |
class | XuMQ::ExchangeManager |
交换机数据内存管理类 更多... | |
命名空间 | |
namespace | XuMQ |
类型定义 | |
using | XuMQ::ExchangeMap = std::unordered_map< std::string, Exchange::ptr > |
交换机映射表 交换机名称->交换机对象指针 | |
交换机管理模块,定义了交换机的结构、持久化以及内存管理功能
该模块定义了交换机的基本结构(Exchange),以及交换机的持久化类(ExchangeMapper) 和内存管理类(ExchangeManager)。实现了交换机的声明、删除、持久化等操作,并通过SQLite 数据库实现数据的持久化。