com.alibaba.rocketmq.client
类 MQHelper

java.lang.Object
  继承者 com.alibaba.rocketmq.client.MQHelper

public class MQHelper
extends Object

从以下版本开始:
2013-11-13
作者:
shijia.wxr

构造方法摘要
MQHelper()
           
 
方法摘要
static void resetOffsetByTimestamp(MessageModel messageModel, String consumerGroup, String topic, long timestamp)
           
static void resetOffsetByTimestamp(MessageModel messageModel, String instanceName, String consumerGroup, String topic, long timestamp)
          根据时间戳来重置一个订阅组的消费进度
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

MQHelper

public MQHelper()
方法详细信息

resetOffsetByTimestamp

public static void resetOffsetByTimestamp(MessageModel messageModel,
                                          String instanceName,
                                          String consumerGroup,
                                          String topic,
                                          long timestamp)
                                   throws Exception
根据时间戳来重置一个订阅组的消费进度

参数:
messageModel - 广播消费还是集群消费
instanceName - 实例名称,保持与工作Consumer一致。
consumerGroup - 订阅组
topic - topic
timestamp - 时间戳
抛出:
Exception

resetOffsetByTimestamp

public static void resetOffsetByTimestamp(MessageModel messageModel,
                                          String consumerGroup,
                                          String topic,
                                          long timestamp)
                                   throws Exception
抛出:
Exception


Copyright © 2012-2014. All Rights Reserved.