ivankelly commented on a change in pull request #738: Issue 731: refine 
LedgerEntry interface and implementation
URL: https://github.com/apache/bookkeeper/pull/738#discussion_r151650342
 
 

 ##########
 File path: 
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/api/LedgerEntry.java
 ##########
 @@ -56,11 +56,9 @@
     long getLength();
 
     /**
-     * Returns the content of the entry. This method can be called only once. 
While using v2 wire protocol this method
-     * will automatically release the internal ByteBuf.
+     * Returns the content of the entry.
      *
      * @return the content of the entry
-     * @throws IllegalStateException if this method is called twice
      */
     byte[] getEntry();
 
 
 Review comment:
   As in, are we returning ownership of the object? Or does the LedgerEntry own 
the buffer, and is this why it requires closing?

----------------------------------------------------------------
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