-
Notifications
You must be signed in to change notification settings - Fork 1.7k
GH-101: Rename DeDup Classes/Interfaces to Filter #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I think I'm fine with the solution. |
|
||
private final AcknowledgingMessageListener<K, V> delegate; | ||
|
||
private final boolean ackDiscarded; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we add this option into the MessagingMessageListenerAdapter
as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah - I was hoping to avoid that 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trying to imagine a use case where not acknowledging a discarded message would be useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They might be acking manually on some condition (special marker record perhaps and not want random acks being done on their behalf.
I guess I am just a bit uncomfortable issuing automatic acks when they have specifically requested to use manual acks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see. An option gives a choice then. Should we at least make this true
by default - otherwise, in the case of manual acks, they would almost never have a chance to ack those messages and there's no chance that they would ack them in the future on replay - so unless there's a message that they're interested in, this would keep redelivering messages on each restart.
Pushed - @artembilan - it's a bit simpler now, if the container listener factory is configured - we wrap the MMLA with a filtering adapter. |
The trouble with making it true by default is it really can only be used of the AckMode is set to one of the MANUAL options. |
} | ||
} | ||
else { | ||
container.setupMessageListener(messageListener); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can still have this line of code without duplication in each if...else
.
Minor, of course.
Will polish on merge.
Merged as b1dc76e |
Resolves #101