com.alibaba.rocketmq.client.impl.consumer
类 RebalanceImpl
java.lang.Object
com.alibaba.rocketmq.client.impl.consumer.RebalanceImpl
- 直接已知子类:
- RebalancePullImpl, RebalancePushImpl
public abstract class RebalanceImpl
- extends Object
Rebalance的具体实现
- 从以下版本开始:
- 2013-6-22
- 作者:
- shijia.wxr
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.slf4j.Logger log
processQueueTable
protected final ConcurrentHashMap<MessageQueue,ProcessQueue> processQueueTable
topicSubscribeInfoTable
protected final ConcurrentHashMap<String,Set<MessageQueue>> topicSubscribeInfoTable
subscriptionInner
protected final ConcurrentHashMap<String,SubscriptionData> subscriptionInner
consumerGroup
protected String consumerGroup
messageModel
protected MessageModel messageModel
allocateMessageQueueStrategy
protected AllocateMessageQueueStrategy allocateMessageQueueStrategy
mQClientFactory
protected MQClientFactory mQClientFactory
RebalanceImpl
public RebalanceImpl(String consumerGroup,
MessageModel messageModel,
AllocateMessageQueueStrategy allocateMessageQueueStrategy,
MQClientFactory mQClientFactory)
unlock
public void unlock(MessageQueue mq,
boolean oneway)
unlockAll
public void unlockAll(boolean oneway)
lock
public boolean lock(MessageQueue mq)
lockAll
public void lockAll()
doRebalance
public void doRebalance()
messageQueueChanged
public abstract void messageQueueChanged(String topic,
Set<MessageQueue> mqAll,
Set<MessageQueue> mqDivided)
removeUnnecessaryMessageQueue
public abstract boolean removeUnnecessaryMessageQueue(MessageQueue mq,
ProcessQueue pq)
dispatchPullRequest
public abstract void dispatchPullRequest(List<PullRequest> pullRequestList)
computePullFromWhere
public abstract long computePullFromWhere(MessageQueue mq)
getSubscriptionInner
public ConcurrentHashMap<String,SubscriptionData> getSubscriptionInner()
getProcessQueueTable
public ConcurrentHashMap<MessageQueue,ProcessQueue> getProcessQueueTable()
getTopicSubscribeInfoTable
public ConcurrentHashMap<String,Set<MessageQueue>> getTopicSubscribeInfoTable()
getConsumerGroup
public String getConsumerGroup()
setConsumerGroup
public void setConsumerGroup(String consumerGroup)
getMessageModel
public MessageModel getMessageModel()
setMessageModel
public void setMessageModel(MessageModel messageModel)
getAllocateMessageQueueStrategy
public AllocateMessageQueueStrategy getAllocateMessageQueueStrategy()
setAllocateMessageQueueStrategy
public void setAllocateMessageQueueStrategy(AllocateMessageQueueStrategy allocateMessageQueueStrategy)
getmQClientFactory
public MQClientFactory getmQClientFactory()
setmQClientFactory
public void setmQClientFactory(MQClientFactory mQClientFactory)
Copyright © 2012-2014. All Rights Reserved.