com.alibaba.rocketmq.client.impl.consumer
类 ConsumeMessageConcurrentlyService

java.lang.Object
  继承者 com.alibaba.rocketmq.client.impl.consumer.ConsumeMessageConcurrentlyService
所有已实现的接口:
ConsumeMessageService

public class ConsumeMessageConcurrentlyService
extends Object
implements ConsumeMessageService

并发消费消息服务

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

构造方法摘要
ConsumeMessageConcurrentlyService(DefaultMQPushConsumerImpl defaultMQPushConsumerImpl, MessageListenerConcurrently messageListener)
           
 
方法摘要
 ConsumerStat getConsumerStat()
           
 void processConsumeResult(ConsumeConcurrentlyStatus status, ConsumeConcurrentlyContext context, com.alibaba.rocketmq.client.impl.consumer.ConsumeMessageConcurrentlyService.ConsumeRequest consumeRequest)
           
 boolean sendMessageBack(MessageExt msg, ConsumeConcurrentlyContext context)
           
 void shutdown()
           
 void start()
           
 void submitConsumeRequest(List<MessageExt> msgs, ProcessQueue processQueue, MessageQueue messageQueue, boolean dispathToConsume)
           
 void updateCorePoolSize(int corePoolSize)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ConsumeMessageConcurrentlyService

public ConsumeMessageConcurrentlyService(DefaultMQPushConsumerImpl defaultMQPushConsumerImpl,
                                         MessageListenerConcurrently messageListener)
方法详细信息

start

public void start()
指定者:
接口 ConsumeMessageService 中的 start

shutdown

public void shutdown()
指定者:
接口 ConsumeMessageService 中的 shutdown

getConsumerStat

public ConsumerStat getConsumerStat()

sendMessageBack

public boolean sendMessageBack(MessageExt msg,
                               ConsumeConcurrentlyContext context)

processConsumeResult

public void processConsumeResult(ConsumeConcurrentlyStatus status,
                                 ConsumeConcurrentlyContext context,
                                 com.alibaba.rocketmq.client.impl.consumer.ConsumeMessageConcurrentlyService.ConsumeRequest consumeRequest)

submitConsumeRequest

public void submitConsumeRequest(List<MessageExt> msgs,
                                 ProcessQueue processQueue,
                                 MessageQueue messageQueue,
                                 boolean dispathToConsume)
指定者:
接口 ConsumeMessageService 中的 submitConsumeRequest

updateCorePoolSize

public void updateCorePoolSize(int corePoolSize)
指定者:
接口 ConsumeMessageService 中的 updateCorePoolSize


Copyright © 2012-2014. All Rights Reserved.