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 2018/03/19 17:28:36 UTC
[GitHub] jai1 closed pull request #730: CPP Client: Deprecated few APIs that can't be used with batch messages
jai1 closed pull request #730: CPP Client: Deprecated few APIs that can't be used with batch messages
URL: https://github.com/apache/incubator-pulsar/pull/730
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/pulsar-client-cpp/include/pulsar/Consumer.h b/pulsar-client-cpp/include/pulsar/Consumer.h
index c02c2604a..6cbafd904 100644
--- a/pulsar-client-cpp/include/pulsar/Consumer.h
+++ b/pulsar-client-cpp/include/pulsar/Consumer.h
@@ -112,6 +112,10 @@ class Consumer {
* @return ResultError if there was a failure
*/
Result acknowledge(const Message& message);
+
+ /*
+ * @deprecated - Not to be used with Batch Messages.
+ */
Result acknowledge(const MessageId& messageId);
/**
@@ -124,6 +128,10 @@ class Consumer {
* @param callback callback that will be triggered when the message has been acknowledged
*/
void acknowledgeAsync(const Message& message, ResultCallback callback);
+
+ /*
+ * @deprecated - Not to be used with Batch Messages.
+ */
void acknowledgeAsync(const MessageId& messageID, ResultCallback callback);
/**
@@ -143,6 +151,10 @@ class Consumer {
* @return ResultError if there was a failure
*/
Result acknowledgeCumulative(const Message& message);
+
+ /*
+ * @deprecated - Not to be used with Batch Messages.
+ */
Result acknowledgeCumulative(const MessageId& messageId);
/**
@@ -156,6 +168,10 @@ class Consumer {
* @param callback callback that will be triggered when the message has been acknowledged
*/
void acknowledgeCumulativeAsync(const Message& message, ResultCallback callback);
+
+ /*
+ * @deprecated - Not to be used with Batch Messages.
+ */
void acknowledgeCumulativeAsync(const MessageId& messageId, ResultCallback callback);
Result close();
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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