eolivelli commented on a change in pull request #715: Issue 694: ReadHandle 
doesn't have getLength() method
URL: https://github.com/apache/bookkeeper/pull/715#discussion_r150378117
 
 

 ##########
 File path: 
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/api/WriteHandle.java
 ##########
 @@ -52,4 +52,12 @@
         return append(Unpooled.wrappedBuffer(data));
     }
 
+    /**
+     * Get the entry id of the last entry that has been enqueued for addition 
(but
+     * may not have possibly been persisted to the ledger).
+     *
+     * @return the entry id of the last entry pushed or -1 if no entry has 
been pushed.
+     */
+    long getLastAddPushed();
 
 Review comment:
   Good to have this only here and not in WriteAdvHandle, it makes sense only 
here

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to