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

java.lang.Object
  继承者 com.alibaba.rocketmq.common.ServiceThread
      继承者 com.alibaba.rocketmq.client.impl.consumer.PullMessageService
所有已实现的接口:
Runnable

public class PullMessageService
extends ServiceThread

长轮询拉消息服务,单线程异步拉取

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

字段摘要
 
从类 com.alibaba.rocketmq.common.ServiceThread 继承的字段
hasNotified, stoped, thread
 
构造方法摘要
PullMessageService(MQClientFactory mQClientFactory)
           
 
方法摘要
 void executePullRequestImmediately(PullRequest pullRequest)
          立刻执行PullRequest
 void executePullRequestLater(PullRequest pullRequest, long timeDelay)
          只定时一次
 ScheduledExecutorService getScheduledExecutorService()
           
 String getServiceName()
           
 void run()
           
 
从类 com.alibaba.rocketmq.common.ServiceThread 继承的方法
getJointime, isStoped, makeStop, onWaitEnd, shutdown, shutdown, start, stop, stop, waitForRunning, wakeup
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

PullMessageService

public PullMessageService(MQClientFactory mQClientFactory)
方法详细信息

executePullRequestLater

public void executePullRequestLater(PullRequest pullRequest,
                                    long timeDelay)
只定时一次


executePullRequestImmediately

public void executePullRequestImmediately(PullRequest pullRequest)
立刻执行PullRequest


run

public void run()

getServiceName

public String getServiceName()
指定者:
ServiceThread 中的 getServiceName

getScheduledExecutorService

public ScheduledExecutorService getScheduledExecutorService()


Copyright © 2012-2014. All Rights Reserved.