eolivelli opened a new pull request, #15391:
URL: https://github.com/apache/pulsar/pull/15391
### Motivation
In some cases a Consumer will reject the processing of a message, and so
negative acknowledge it.
With this change you can emulate this behaviour and save resources by not
sending the Entry to the Consumer, but anticipating the "negative acknowledge".
### Modifications
- Allow the EntryFilter to access the Consumer who is going to receive the
message (add Consumer to FilterContext)
- Add a new FilterResult RESCHEDULE that means that the Filter wills to
schedule the message to "another consumer" or to post pone the processing of
the message
### Verifying this change
TODO: add tests
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]