You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/09/21 19:24:19 UTC

[GitHub] [pulsar] devinbost commented on issue #6448: Support Consumers Set Custom Retry Delay

devinbost commented 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:
users@infra.apache.org