Skip to content

Commit

Permalink
[fix][doc] Fix the note of seek in the consumer (apache#18476)
Browse files Browse the repository at this point in the history
### Motivation

We already added the seek support for multi-topics consumer in apache#7518. But the note for seek method hasn't been updated.

### Modifications

* Update the doc for seek method in the consumer.
  • Loading branch information
RobertIndie authored and lifepuzzlefun committed Dec 9, 2022
1 parent 765c918 commit ea03322
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -695,8 +695,7 @@ CompletableFuture<Void> reconsumeLaterCumulativeAsync(Message<?> message,
* <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
Expand Down Expand Up @@ -752,8 +751,7 @@ CompletableFuture<Void> reconsumeLaterCumulativeAsync(Message<?> message,
* <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
Expand Down

0 comments on commit ea03322

Please sign in to comment.