zhaijack commented on a change in pull request #1066: Issue 937: add 
CommandGetLastMessageId to make reader know the end of topic
URL: https://github.com/apache/incubator-pulsar/pull/1066#discussion_r162845520
 
 

 ##########
 File path: 
pulsar-client/src/main/java/org/apache/pulsar/client/api/Consumer.java
 ##########
 @@ -278,4 +277,19 @@
      * @return a future to track the completion of the seek operation
      */
     CompletableFuture<Void> seekAsync(MessageId messageId);
+
+    /**
+     * Gets last message id of Topic.
+     *
+     * @return the last message id
+     */
+    MessageId getLastMessageId() throws PulsarClientException;
 
 Review comment:
   Thanks for all the comments. 
   If needed, will add a position var to track the last position 
in`incomingMessages` to achieve `consumer.hasMessageAvaiable()`.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to