美文网首页
common模块阅读6:TopicConfigSerialize

common模块阅读6:TopicConfigSerialize

作者: 赤子心_d709 | 来源:发表于2017-09-11 13:34 被阅读33次

    说明

    该类继承了抽象类RemotingSerializable,封装topic配置以及版本号,用于网络传输配置以及版本

    类图如下,DataVersion和TopicConfig在前面讲解过


    image.png

    字段

    private ConcurrentMap<String, TopicConfig> topicConfigTable = new ConcurrentHashMap<String, TopicConfig>();//topic以及对应的配置
    private DataVersion dataVersion = new DataVersion();//版本信息

    方法

    就是get,set方法不介绍

    思考

    这个类被调用的例子

    NameServer注册broker时,RouteInfoManager#registerBroker
    调用了getDataVersion,getTopicConfigTable方法

    相关文章

      网友评论

          本文标题:common模块阅读6:TopicConfigSerialize

          本文链接:https://www.haomeiwen.com/subject/cvtfsxtx.html