This is an automated email from the ASF dual-hosted git repository.
zike pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new deff8c3ae46 [fix][doc] Fix the note of seek in the consumer (#18476)
deff8c3ae46 is described below
commit deff8c3ae467acc16ffc9cd93d69ab77b3ae981f
Author: Zike Yang <[email protected]>
AuthorDate: Fri Nov 18 23:45:25 2022 +0800
[fix][doc] Fix the note of seek in the consumer (#18476)
### Motivation
We already added the seek support for multi-topics consumer in
https://github.com/apache/pulsar/pull/7518. But the note for seek method hasn't
been updated.
### Modifications
* Update the doc for seek method in the consumer.
---
.../src/main/java/org/apache/pulsar/client/api/Consumer.java | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git
a/pulsar-client-api/src/main/java/org/apache/pulsar/client/api/Consumer.java
b/pulsar-client-api/src/main/java/org/apache/pulsar/client/api/Consumer.java
index a25beef8011..f727f21689b 100644
--- a/pulsar-client-api/src/main/java/org/apache/pulsar/client/api/Consumer.java
+++ b/pulsar-client-api/src/main/java/org/apache/pulsar/client/api/Consumer.java
@@ -695,8 +695,7 @@ public interface Consumer<T> extends Closeable {
* <li><code>MessageId.latest</code> : Reset the subscription on the
latest message in the topic
* </ul>
*
- * <p>Note: this operation can only be done on non-partitioned topics. For
these, one can rather perform
- * the seek() on the individual partitions.
+ * <p>Note: For multi-topics consumer, you can only seek to the earliest
or latest message.
*
* @param messageId
* the message id where to reposition the subscription
@@ -752,8 +751,7 @@ public interface Consumer<T> extends Closeable {
* <li><code>MessageId.latest</code> : Reset the subscription on the
latest message in the topic
* </ul>
*
- * <p>Note: this operation can only be done on non-partitioned topics. For
these, one can rather perform
- * the seek() on the individual partitions.
+ * <p>Note: For multi-topics consumer, you can only seek to the earliest
or latest message.
*
* @param messageId
* the message id where to reposition the subscription