wuYin opened a new pull request #359: URL: https://github.com/apache/pulsar-client-go/pull/359
Fixes #353 ### Motivation Follow [pulsar#6449](https://github.com/apache/pulsar/pull/6449) to support retry letter topic in go client ### Modifications - Add `retryRouter` for sending reconsume messages to retry letter topic - Add `ReconsumeLater(msg Message, delay time.Duration)` to Consumer interface - Add configureable retry letter topic name in `DLQPolicy` ```go type DLQPolicy struct { // ... // Name of the topic where the retry messages will be sent. RetryLetterTopic string } ``` enable it explicitly while creating consumer, default enabled ```go type ConsumerOptions struct { // ... // Auto retry send messages to default filled DLQPolicy topics RetryEnable bool } ``` - Add 3 `TestRLQ*` test cases ### Verifying this change - [ ] Make sure that the change passes the CI checks. ### Documentation [pulsar doc: retry-letter-topic](http://pulsar.apache.org/docs/en/concepts-messaging/#retry-letter-topic) ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
