public class DefaultMQPullConsumerImpl extends Object implements MQConsumerInner
| 构造器和说明 |
|---|
DefaultMQPullConsumerImpl(DefaultMQPullConsumer defaultMQPullConsumer) |
public DefaultMQPullConsumerImpl(DefaultMQPullConsumer defaultMQPullConsumer)
public void createTopic(String key, String newTopic, int queueNum) throws MQClientException
public long fetchConsumeOffset(MessageQueue mq, boolean fromStore) throws MQClientException
public Set<MessageQueue> fetchMessageQueuesInBalance(String topic) throws MQClientException
public List<MessageQueue> fetchPublishMessageQueues(String topic) throws MQClientException
public Set<MessageQueue> fetchSubscribeMessageQueues(String topic) throws MQClientException
public long earliestMsgStoreTime(MessageQueue mq) throws MQClientException
public String groupName()
groupName 在接口中 MQConsumerInnerpublic MessageModel messageModel()
messageModel 在接口中 MQConsumerInnerpublic ConsumeType consumeType()
consumeType 在接口中 MQConsumerInnerpublic ConsumeFromWhere consumeFromWhere()
consumeFromWhere 在接口中 MQConsumerInnerpublic Set<SubscriptionData> subscriptions()
subscriptions 在接口中 MQConsumerInnerpublic void doRebalance()
doRebalance 在接口中 MQConsumerInnerpublic void persistConsumerOffset()
persistConsumerOffset 在接口中 MQConsumerInnerpublic void updateTopicSubscribeInfo(String topic, Set<MessageQueue> info)
updateTopicSubscribeInfo 在接口中 MQConsumerInnerpublic boolean isSubscribeTopicNeedUpdate(String topic)
isSubscribeTopicNeedUpdate 在接口中 MQConsumerInnerpublic long maxOffset(MessageQueue mq) throws MQClientException
public long minOffset(MessageQueue mq) throws MQClientException
public PullResult pull(MessageQueue mq, String subExpression, long offset, int maxNums) throws MQClientException, com.alibaba.rocketmq.remoting.exception.RemotingException, MQBrokerException, InterruptedException
MQClientExceptioncom.alibaba.rocketmq.remoting.exception.RemotingExceptionMQBrokerExceptionInterruptedExceptionpublic void pull(MessageQueue mq, String subExpression, long offset, int maxNums, PullCallback pullCallback) throws MQClientException, com.alibaba.rocketmq.remoting.exception.RemotingException, InterruptedException
MQClientExceptioncom.alibaba.rocketmq.remoting.exception.RemotingExceptionInterruptedExceptionpublic PullResult pullBlockIfNotFound(MessageQueue mq, String subExpression, long offset, int maxNums) throws MQClientException, com.alibaba.rocketmq.remoting.exception.RemotingException, MQBrokerException, InterruptedException
MQClientExceptioncom.alibaba.rocketmq.remoting.exception.RemotingExceptionMQBrokerExceptionInterruptedExceptionpublic void pullBlockIfNotFound(MessageQueue mq, String subExpression, long offset, int maxNums, PullCallback pullCallback) throws MQClientException, com.alibaba.rocketmq.remoting.exception.RemotingException, InterruptedException
MQClientExceptioncom.alibaba.rocketmq.remoting.exception.RemotingExceptionInterruptedExceptionpublic QueryResult queryMessage(String topic, String key, int maxNum, long begin, long end) throws MQClientException, InterruptedException
public long searchOffset(MessageQueue mq, long timestamp) throws MQClientException
public void sendMessageBack(MessageExt msg, int delayLevel) throws com.alibaba.rocketmq.remoting.exception.RemotingException, MQBrokerException, InterruptedException, MQClientException
com.alibaba.rocketmq.remoting.exception.RemotingExceptionMQBrokerExceptionInterruptedExceptionMQClientExceptionpublic void shutdown()
public void start()
throws MQClientException
public void updateConsumeOffset(MessageQueue mq, long offset) throws MQClientException
public MessageExt viewMessage(String msgId) throws com.alibaba.rocketmq.remoting.exception.RemotingException, MQBrokerException, InterruptedException, MQClientException
com.alibaba.rocketmq.remoting.exception.RemotingExceptionMQBrokerExceptionInterruptedExceptionMQClientExceptionpublic DefaultMQPullConsumer getDefaultMQPullConsumer()
public OffsetStore getOffsetStore()
public void setOffsetStore(OffsetStore offsetStore)
Copyright © 2012–2013. All rights reserved.