mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
test
This commit is contained in:
parent
4dd45a4709
commit
79bab3b269
@ -74,10 +74,13 @@ public class RocketMQConsumerApplication {
|
||||
while (true) {
|
||||
mySink.input5().poll(m -> {
|
||||
String payload = (String) m.getPayload();
|
||||
if(payload.contains("0")){
|
||||
throw new IllegalArgumentException("111111111111111111111111111111111111111111");
|
||||
}
|
||||
System.out.println("pull msg: " + payload);
|
||||
}, new ParameterizedTypeReference<String>() {
|
||||
});
|
||||
Thread.sleep(2_000);
|
||||
Thread.sleep(5_00);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user