codelipenghui commented on a change in pull request #10224:
URL: https://github.com/apache/pulsar/pull/10224#discussion_r615606887



##########
File path: 
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedCursorImpl.java
##########
@@ -586,6 +588,48 @@ public void asyncReadEntries(int numberOfEntriesToRead, 
long maxSizeBytes, ReadE
         ledger.asyncReadEntries(op);
     }
 
+    public CompletableFuture<Entry> readLastConfirmEntry() {

Review comment:
       You can use `getLastPosition()` method of the ManagedLedger directly.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to