common模块阅读6:TopicConfigSerialize
2017-09-11 本文已影响33人
赤子心_d709
说明
该类继承了抽象类RemotingSerializable,封装topic配置以及版本号,用于网络传输配置以及版本
类图如下,DataVersion和TopicConfig在前面讲解过

字段
private ConcurrentMap<String, TopicConfig> topicConfigTable = new ConcurrentHashMap<String, TopicConfig>();//topic以及对应的配置
private DataVersion dataVersion = new DataVersion();//版本信息
方法
就是get,set方法不介绍
思考
这个类被调用的例子
NameServer注册broker时,RouteInfoManager#registerBroker
调用了getDataVersion,getTopicConfigTable方法