You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2017/11/11 08:10:51 UTC

[GitHub] eolivelli commented on a change in pull request #715: Issue 694: ReadHandle doesn't have getLength() method

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


With regards,
Apache Git Services