mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-01 15:47:01 +08:00
This commit is contained in:
@@ -45,8 +45,8 @@ public class MessageBatch extends Message implements Iterable<Message> {
|
||||
List<Message> messageList = new ArrayList<>(messages.size());
|
||||
Message first = null;
|
||||
for (Message message : messages) {
|
||||
if (message.getDelayTimeLevel() > 0) {
|
||||
throw new UnsupportedOperationException("TimeDelayLevel is not supported for batching");
|
||||
if (message.getDelayTimeLevel() > 0 || message.getDelayTimeMs() > 0 || message.getDelayTimeSec() > 0 || message.getDeliverTimeMs() > 0) {
|
||||
throw new UnsupportedOperationException("Delayed messages are not supported for batching");
|
||||
}
|
||||
if (message.getTopic().startsWith(MixAll.RETRY_GROUP_TOPIC_PREFIX)) {
|
||||
throw new UnsupportedOperationException("Retry Group is not supported for batching");
|
||||
|
||||
Reference in New Issue
Block a user