[ISSUE #3561] Optimize consuming messages with namespace example

Co-authored-by: yangmingxu <mingxu914>
This commit is contained in:
ymingxu
2022-03-08 16:26:33 +08:00
committed by GitHub
parent 7a5d937c76
commit febc083605
@@ -29,7 +29,7 @@ public class PushConsumerWithNamespace {
msgs.stream().forEach((msg) -> {
System.out.printf("Msg topic is:%s, MsgId is:%s, reconsumeTimes is:%s%n", msg.getTopic() , msg.getMsgId(), msg.getReconsumeTimes());
});
return ConsumeConcurrentlyStatus.RECONSUME_LATER;
return ConsumeConcurrentlyStatus.CONSUME_SUCCESS;
});
defaultMQPushConsumer.start();