You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/10/31 03:23:48 UTC
[GitHub] [pulsar] startjava edited a discussion: How to achieve the effect of maximum delay time in retransmission backoff mechanism
GitHub user startjava edited a discussion: How to achieve the effect of maximum delay time in retransmission backoff mechanism
```
@Bean
public Consumer createPulsarConsumer_myTopic5() throws PulsarClientException {
Consumer consumer = pulsarClient.newConsumer().topic(myTopic5).subscriptionName(myTopic5_subscriptionName).messageListener(myMessageListener5).negativeAckRedeliveryBackoff(MultiplierRedeliveryBackoff.builder().minDelayMs(1000).maxDelayMs(60 * 1000).build()).subscribe();
return consumer;
}
```
My current effect produces a message, then nack, and then Redelivery every 1s,,
I want to know when is maxDelayMs (60 * 1000)? thank
i want achieve bottom effect:
<html>
<body>
<!--StartFragment-->
Redelivery count | Redelivery delay
-- | --
1 | 10 + 1 seconds
2 | 10 + 2 seconds
3 | 10 + 4 seconds
4 | 10 + 8 seconds
5 | 10 + 16 seconds
6 | 10 + 32 seconds
7 | 10 + 60 seconds
8 | 10 + 60 seconds
<!--EndFragment-->
</body>
</html>
but now every 1s .
GitHub link: https://github.com/apache/pulsar/discussions/18261
----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org