Skip to content

Commit

Permalink
fix: java doc on MessageListener - acknowledgement part (apache#5429)
Browse files Browse the repository at this point in the history
JavaDoc fix

MessageListener's message ack responsibility was not documented
  • Loading branch information
Guchman authored and sijie committed Nov 13, 2019
1 parent 96acc57 commit f8e91a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public interface MessageListener<T> extends Serializable {
*
* This method will only be called once for each message, unless either application or broker crashes.
*
* Implementation should acknowledge messages by calling consumer.acknowledge(msg).
*
* Application is responsible of handling any exception that could be thrown while processing the message.
*
* @param consumer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public interface MessageListener<T> extends Serializable {
*
* <p>This method will only be called once for each message, unless either application or broker crashes.
*
* <p>Application is responsible for acking message by calling any of consumer acknowledgement methods.
*
* <p>Application is responsible of handling any exception that could be thrown while processing the message.
*
* @param consumer
Expand Down

0 comments on commit f8e91a2

Please sign in to comment.