You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/06/30 13:48:41 UTC

[GitHub] [pulsar] Anonymitaet commented on a change in pull request #11166: Add a call ACK / unack example to avoid confusing the retrial mechaniā€¦

Anonymitaet commented on a change in pull request #11166:
URL: https://github.com/apache/pulsar/pull/11166#discussion_r661492093



##########
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:
       Agree with @BewareMyPower, can you add an example for cumulative acknowledgement? @yonyong




-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org