devinbost edited a comment on issue #6448:
URL: https://github.com/apache/pulsar/issues/6448#issuecomment-696321076


   Hi @liudezhi2098 , thanks for your work on this. I'm trying to understand 
how I'd advise users regarding how to implement this feature. 
   The docs provide this example:
   
   https://pulsar.apache.org/docs/en/concepts-messaging/#retry-letter-topic
   
   ```
   Consumer<byte[]> consumer = pulsarClient.newConsumer(Schema.BYTES)
                   .topic(topic)
                   .subscriptionName("my-subscription")
                   .subscriptionType(SubscriptionType.Shared)
                   .enableRetry(true)
                   .receiverQueueSize(100)
                   .deadLetterPolicy(DeadLetterPolicy.builder()
                           .maxRedeliverCount(maxRedeliveryCount)
                           
.retryLetterTopic("persistent://my-property/my-ns/my-subscription-custom-Retry")
                           .build())
                   
.subscriptionInitialPosition(SubscriptionInitialPosition.Earliest)
                   .subscribe();
   ```
   
   However, it's not clear where they'd set the delay between retries. Could 
you please clarify this? 
   


----------------------------------------------------------------
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]


Reply via email to