lhotari commented on code in PR #24623:
URL: https://github.com/apache/pulsar/pull/24623#discussion_r2306402984


##########
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/ReferenceCountedEntry.java:
##########
@@ -24,5 +24,13 @@
  * An Entry that is also reference counted.
  */
 public interface ReferenceCountedEntry extends Entry, ReferenceCounted {
+    EntryReadCountHandler getReadCountHandler();
 
+    default boolean hasExpectedReads() {

Review Comment:
   Yes it is, but since `entry.getReadCountHandler()` could be null, this 
simplifies it so that there isn't a need to do a null check.



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

To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to