rocketmq

为什么QueueData要是列表,因为一个topic可能存在于不同的broker上面。表示的含义是某个topic在broker里面有几个队列。

之余broker启动时候的,ConsumerOffsetManage 里面 

private ConcurrentMap<String/* topic@group */, ConcurrentMap<Integer, Long>> offsetTable =
new ConcurrentHashMap<String, ConcurrentMap<Integer, Long>>(512);
含义解释,topic@group含义清楚,后面的map,其实是本broker里面各个队列的消费量。


commit 针对消息存储于writeBuffer里面的情况,commit 后,就调用channel.write(buffer),写入缓冲区。后续flush刷入磁盘。
那么问题,什么时候是writebuffer,什么时候不用writebuffer呢?

猜你喜欢

转载自www.cnblogs.com/newlx/p/8784652.html
今日推荐