forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature / Interceptor for negative ack redelivery (apache#3962)
* Feature / Interceptor for negative ack redelivery *Motivation* In some scenarios is it helpful to be able to set interceptor for redeliveries being happening due to negative acknowledge. *Modifications* - Add onNegativeAcksSend() method in ConsumerInterceptor interface. - Add handler for onNegativeAcksSend() interceptor in ConsumerBase. - Favor forEach on ConsumerInterceptor instead of classic for loop by index. - Optimization for each by index to avoid compute size() every iteration. - Add call method to onNegativeAckRedelivery() from NegativeAcksTracker. * Add test case for onNegativeAcksSend interceptor
- Loading branch information
Showing
5 changed files
with
134 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters