codelipenghui commented on code in PR #17241:
URL: https://github.com/apache/pulsar/pull/17241#discussion_r953422807


##########
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/cache/RangeEntryCacheImpl.java:
##########
@@ -52,9 +58,18 @@ public class RangeEntryCacheImpl implements EntryCache {
     private ManagedLedgerInterceptor interceptor;
     private final RangeCache<PositionImpl, EntryImpl> entries;
     private final boolean copyEntries;
+    private final ConcurrentHashMap<PendingReadKey, CachedPendingRead> 
cachedPendingReads =
+            new ConcurrentHashMap<>();
 
     private static final double MB = 1024 * 1024;
 
+    @Value
+    private static class PendingReadKey {
+        private final long ledgerId;
+        private final long startEntry;
+        private final long endEntry;

Review Comment:
   With the @Value annotation, we can remove `private final`



-- 
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: [email protected]

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

Reply via email to