mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-01 15:47:01 +08:00
docs(example): change delay start point (#2586)
As the test results showed, the message delay period starts from the bornTimestamp, not from storeTimestamp Co-authored-by: Yehua Shang <niceshang@outlook.com>
This commit is contained in:
@@ -446,7 +446,7 @@ public class ScheduledMessageConsumer {
|
||||
public ConsumeConcurrentlyStatus consumeMessage(List<MessageExt> messages, ConsumeConcurrentlyContext context) {
|
||||
for (MessageExt message : messages) {
|
||||
// Print approximate delay time period
|
||||
System.out.println("Receive message[msgId=" + message.getMsgId() + "] " + (System.currentTimeMillis() - message.getStoreTimestamp()) + "ms later");
|
||||
System.out.println("Receive message[msgId=" + message.getMsgId() + "] " + (System.currentTimeMillis() - message.getBornTimestamp()) + "ms later");
|
||||
}
|
||||
return ConsumeConcurrentlyStatus.CONSUME_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user