com.alibaba.rocketmq.client.consumer
接口 AllocateMessageQueueStrategy

所有已知实现类:
AllocateMessageQueueAveragely, AllocateMessageQueueByConfig, AllocateMessageQueueByMachineRoom

public interface AllocateMessageQueueStrategy

Consumer队列自动分配策略

从以下版本开始:
2013-7-24
作者:
shijia.wxr

方法摘要
 List<MessageQueue> allocate(String currentCID, List<MessageQueue> mqAll, List<String> cidAll)
          给当前的ConsumerId分配队列
 

方法详细信息

allocate

List<MessageQueue> allocate(String currentCID,
                            List<MessageQueue> mqAll,
                            List<String> cidAll)
给当前的ConsumerId分配队列

参数:
currentCID - 当前ConsumerId
mqAll - 当前Topic的所有队列集合,无重复数据,且有序
cidAll - 当前订阅组的所有Consumer集合,无重复数据,且有序
返回:
分配结果,无重复数据


Copyright © 2012-2014. All Rights Reserved.