clebertsuconic commented on code in PR #4101:
URL: https://github.com/apache/activemq-artemis/pull/4101#discussion_r891214441
##########
artemis-commons/src/main/java/org/apache/activemq/artemis/utils/SizeAwareMetric.java:
##########
@@ -59,6 +59,13 @@ public interface AddCallback {
private Runnable underCallback;
+ /** To be used in a case where we just measure elements */
+ public SizeAwareMetric() {
+ this.sizeEnabled = false;
+ this.elementsEnabled = false;
+ }
Review Comment:
I would need to use two AtomicInteger on QueueImpl, one for the size in
bytes, not for the size in messages.
I use this to determine when to stop reading from paging.
Besides I could eventually start using some of the callback methods.
--
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]