pulsar-client-go
pulsar-client-go copied to clipboard
feat: add reconsumeLater to regexConsumer
Motivation
Right now, the regexConsumer doesn't support for ReconsumeLater. Indeed, when you try to use you only get a warning saying that is not supported. This PR add support for ReconsumeLater following the same approach as the one followed on multiTopicConsumer.
The RLT topic is also consumed following the same idea as multiTopicConsumer
Modifications
- Enable ReconsumeLater/ReconsumeLaterWithCustomProperties to regexConsumer
- Consume RLT topic
- Add test
Verifying this change
This PR includes tests. Create a regexConsumer and use ReconsumeLater. Messages should go first to RLT, and latter to DLT.
Documentation
Not needed