asafm commented on code in PR #21816:
URL: https://github.com/apache/pulsar/pull/21816#discussion_r1440252191


##########
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedCursorContainer.java:
##########
@@ -56,10 +76,66 @@ private static class Item {
         }
     }
 
-    public ManagedCursorContainer() {
+    /**
+     * Utility class to manage a data version, which rolls over to 0 when 
reaching Long.MAX_VALUE.
+     */
+    public static final class DataVersion {
+        private DataVersion() {}

Review Comment:
   Nice! Didn't know about it.



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