Technoboy- commented on code in PR #20245:
URL: https://github.com/apache/pulsar/pull/20245#discussion_r1216305061
##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerBase.java:
##########
@@ -88,6 +89,7 @@
protected final ConcurrentLinkedQueue<CompletableFuture<Message<T>>>
pendingReceives;
protected final int maxReceiverQueueSize;
private volatile int currentReceiverQueueSize;
+ protected final AtomicInteger messageListenerQueueSize = new
AtomicInteger(0);
Review Comment:
Suggest to use `AtomicIntegerFieldUpdater`
--
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]