yonyong commented on a change in pull request #11166:
URL: https://github.com/apache/pulsar/pull/11166#discussion_r661918740
##########
File path: site2/docs/concepts-messaging.md
##########
@@ -149,6 +149,12 @@ Messages can be acknowledged in the following two ways:
- Messages are acknowledged individually. With individual acknowledgement, the
consumer needs to acknowledge each message and sends an acknowledgement request
to the broker.
- Messages are acknowledged cumulatively. With cumulative acknowledgement, the
consumer only needs to acknowledge the last message it received. All messages
in the stream up to (and including) the provided message are not re-delivered
to that consumer.
+The following example shows how to call the API :
+
+```
+consumer.acknowledge(msg);
+```
Review comment:
I think you have a point,I have pushed the code @Anonymitaet
@BewareMyPower
--
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]