com.alibaba.rocketmq.client
类 MQHelper
java.lang.Object
com.alibaba.rocketmq.client.MQHelper
public class MQHelper
- extends Object
- 从以下版本开始:
- 2013-11-13
- 作者:
- shijia.wxr
| 从类 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 - topictimestamp - 时间戳
- 抛出:
Exception
resetOffsetByTimestamp
public static void resetOffsetByTimestamp(MessageModel messageModel,
String consumerGroup,
String topic,
long timestamp)
throws Exception
- 抛出:
Exception
Copyright © 2012-2014. All Rights Reserved.