rocketmq-baiji / rocketmq

Mirror of Apache RocketMQ
Apache License 2.0
4 stars 20 forks source link

[ISSUE #1]implement a non-persistent broker(第四组) #14

Open GejinZ opened 5 years ago

GejinZ commented 5 years ago

[第四组]

What is the purpose of the change

Fix issue #1.

Brief changelog

用来在内存中存储数据的数据结构是 CurrentMap:private final ConcurrentMap<String/* topic */, ConcurrentMap<Integer/* queueId */, List<MessageExtBrokerInner>>> 数据存入时,根据topic和queueId可以唯一确定一个List,把message存入到对应的List中。 取数据时,根据topic和queueId和offset从对应的List中取出需要查找的message.