提交 667b8f03 编写于 作者: S shutian.lzh

Support scheduled message

上级 de0be119
......@@ -2,6 +2,6 @@ package io.openmessaging.rocketmq.domain;
public interface RocketMQConstants {
String STARTDELIVERTIME = "__STARTDELIVERTIME";
String START_DELIVER_TIME = "__STARTDELIVERTIME";
}
......@@ -57,7 +57,7 @@ public class OMSUtil {
if (sysHeaders.containsKey(BuiltinKeys.START_TIME)) {
long deliverTime = sysHeaders.getLong(BuiltinKeys.START_TIME, 0);
if (deliverTime > 0) {
rmqMessage.putUserProperty(RocketMQConstants.STARTDELIVERTIME, String.valueOf(deliverTime));
rmqMessage.putUserProperty(RocketMQConstants.START_DELIVER_TIME, String.valueOf(deliverTime));
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册