mxsm commented on issue #5439:
URL: https://github.com/apache/rocketmq/issues/5439#issuecomment-1298245743

   @shenmiren0002 I use rocketmq5.0 and rocketmq-spring version 2.2.2
   ```java
       <dependency>
         <groupId>org.apache.rocketmq</groupId>
         <artifactId>rocketmq-spring-boot-starter</artifactId>
         <version>2.2.2</version>
       </dependency>
   ```
   broker.conf
   
![image](https://user-images.githubusercontent.com/15797831/199198819-ff231313-0fab-4232-9f36-cacce7fd676c.png)
   
   consume code:
   ```java
   package com.github.mxsm.rocketmq;
   
   import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
   import org.apache.rocketmq.spring.core.RocketMQListener;
   import org.springframework.stereotype.Service;
   
   @Service
   @RocketMQMessageListener(topic = "mxsm",consumerGroup = "mxsm")
   public class HelloConsume implements RocketMQListener<String> {
       @Override
       public void onMessage(String s) {
           throw new IllegalArgumentException("test");
       }
   }
   ```
   result after 16 times :
   
![image](https://user-images.githubusercontent.com/15797831/199199289-98c7a12e-dde9-4078-bd31-77be41ba0d25.png)
   
   I think you can adjust broker config :
   ```properties
   messageDelayLevel=1s 5s
   ```
    messageDelayLevel implication you can see the document of official website.
   
   you can check the code of you.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to