提交 f8e91a26 编写于 作者: G Guchman 提交者: Sijie Guo

fix: java doc on MessageListener - acknowledgement part (#5429)

JavaDoc fix

MessageListener's message ack responsibility was not documented
上级 96acc57a
......@@ -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
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册