Package org.apache.pulsar.client.api
Interface RedeliveryBackoff
- All Superinterfaces:
Serializable
Interface for custom message is negativeAcked policy, users can specify a
RedeliveryBackoff
for
a consumer.
Notice: the consumer crashes will trigger the redelivery of the unacked message, this case will not respect the
RedeliveryBackoff
, which means the message might get redelivered earlier than the delay time
from the backoff.-
Method Summary
-
Method Details
-
next
long next(int redeliveryCount) - Parameters:
redeliveryCount
- indicates the number of times the message was redelivered
-