-
Notifications
You must be signed in to change notification settings - Fork 68
Listener container properties for batch receive. #118
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
Acknowledgment API cleanup.
...t-autoconfigure/src/main/java/org/springframework/pulsar/autoconfigure/PulsarProperties.java
Show resolved
Hide resolved
...t-autoconfigure/src/main/java/org/springframework/pulsar/autoconfigure/PulsarProperties.java
Show resolved
Hide resolved
@@ -360,6 +360,11 @@ else if (this.listener != null) { | |||
else if (this.containerProperties.getAckMode() == AckMode.BATCH) { | |||
this.nackableMessages.add(message.getMessageId()); | |||
} | |||
else { | |||
throw new IllegalStateException( | |||
"Exception occurred and not negatively acknowledged or handled properly", |
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.
Is there any action we can recommend for the user to take in this case? I guess, what is the outcome in this case (data loss?)
...src/main/java/org/springframework/pulsar/listener/DefaultPulsarMessageListenerContainer.java
Show resolved
Hide resolved
...t-autoconfigure/src/main/java/org/springframework/pulsar/autoconfigure/PulsarProperties.java
Show resolved
Hide resolved
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.
@sobychacko I requested some minor changes around config props name/type/docs.
Closed via eef1616 |
Acknowledgment API cleanup.