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 继承的方法 |
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.