clebertsuconic commented on a change in pull request #2912: NO-JIRA Minor code
improvement in QueueImpl
URL: https://github.com/apache/activemq-artemis/pull/2912#discussion_r356151316
##########
File path:
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java
##########
@@ -129,9 +129,9 @@
protected static final int CRITICAL_CHECK_DEPAGE = 4;
private static final Logger logger = Logger.getLogger(QueueImpl.class);
- private static final AtomicIntegerFieldUpdater dispatchingUpdater =
AtomicIntegerFieldUpdater.newUpdater(QueueImpl.class, "dispatching");
- private static final AtomicLongFieldUpdater dispatchStartTimeUpdater =
AtomicLongFieldUpdater.newUpdater(QueueImpl.class, "dispatchStartTime");
- private static final AtomicLongFieldUpdater consumerRemovedTimestampUpdater
= AtomicLongFieldUpdater.newUpdater(QueueImpl.class,
"consumerRemovedTimestamp");
+ private static final AtomicIntegerFieldUpdater<QueueImpl>
dispatchingUpdater = AtomicIntegerFieldUpdater.newUpdater(QueueImpl.class,
"dispatching");
Review comment:
What's the difference here? what's the advantage?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services