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 2019/03/06 05:40:18 UTC

[GitHub] [pulsar] sijie commented on a change in pull request #3750: Negative acks in C++ client

sijie commented on a change in pull request #3750: Negative acks in C++ client
URL: https://github.com/apache/pulsar/pull/3750#discussion_r262797484
 
 

 ##########
 File path: pulsar-client-cpp/include/pulsar/c/consumer.h
 ##########
 @@ -164,6 +164,21 @@ void pulsar_consumer_acknowledge_cumulative_async_id(pulsar_consumer_t *consumer
                                                      pulsar_message_id_t *messageId,
                                                      pulsar_result_callback callback, void *ctx);
 
+/**
+ * Acknowledge the failure to process a single message.
+ * <p>
+ * When a message is "negatively acked" it will be marked for redelivery after
+ * some fixed delay. The delay is configurable when constructing the consumer
+ * with {@link ConsumerConfiguration#setNegativeAckRedeliveryDelayMs}.
+ * <p>
+ * This call is not blocking.
+ *
+ * @param message
+ *            The {@code Message} to be acknowledged
+ */
+void pulsar_consumer_negative_acknowledge(pulsar_consumer_t *consumer, pulsar_message_t *message);
+void pulsar_consumer_negative_acknowledge_id(pulsar_consumer_t *consumer, pulsar_message_id_t *messageId);
 
 Review comment:
   comments?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services