GitHub user startjava edited a discussion: How to achieve the effect of maximum
delay time in retransmission backoff mechanism
```
@Bean
public Consumer createPulsarConsumer_myTopic2() throws
PulsarClientException {
Consumer consumer =
pulsarClient.newConsumer().topic(myTopic2).subscriptionName(myTopic2_subscriptionName).messageListener(myMessageListener1).subscriptionType(SubscriptionType.Shared).ackTimeout(10,
TimeUnit.SECONDS).negativeAckRedeliveryBackoff(MultiplierRedeliveryBackoff.builder()
.minDelayMs(1000)
.maxDelayMs(60 * 1000)
.multiplier(2)
.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 [email protected].
To unsubscribe, please send an email to: [email protected]