-
Notifications
You must be signed in to change notification settings - Fork 916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RocketmqTemplate does not have a method to send delay messages in version 5.0 #506
Comments
当前RocketMQ-Spring支持到4.x,会尽快适配5.0 |
加油💪, 期待尽快适配5.0 |
5.0也不支持任意指定延迟时间吧,商业版的才有 |
@i will resolve it |
@MartinDai 社区5.0版本已经支持 |
Message message = new Message(TOPIC, ("Hello scheduled message " + i).getBytes(StandardCharsets.UTF_8));
// This message will be delivered to consumer 10 seconds later.
//message.setDelayTimeSec(10);
// The effect is the same as the above
// message.setDelayTimeMs(10_000L);
// Set the specific delivery time, and the effect is the same as the above
message.setDeliverTimeMs(System.currentTimeMillis() + 3600_000L);
想实现类似的功能没看到哪个接口支持,只找到了固定延迟级别的接口:
SendResult syncSend(String destination, Message<?> message, long timeout, int delayLevel)
The text was updated successfully, but these errors were encountered: