[
https://issues.apache.org/jira/browse/ARTEMIS-3850?focusedWorklogId=780826&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-780826
]
ASF GitHub Bot logged work on ARTEMIS-3850:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 13/Jun/22 13:49
Start Date: 13/Jun/22 13:49
Worklog Time Spent: 10m
Work Description: clebertsuconic commented on code in PR #4101:
URL: https://github.com/apache/activemq-artemis/pull/4101#discussion_r895739505
##########
artemis-commons/src/main/java/org/apache/activemq/artemis/utils/ReferenceCounterUtil.java:
##########
@@ -61,24 +63,31 @@ public Runnable getTask() {
@Override
public int increment() {
- return uses.incrementAndGet();
+ return useUpdater.incrementAndGet(this);
}
@Override
public int decrement() {
- int value = uses.decrementAndGet();
+ int value = useUpdater.decrementAndGet(this);
if (value == 0) {
execute();
}
return value;
}
+ public void reset() {
+ execute();
Review Comment:
I probably need a better name then... exhaust?
this method will consume all the credits and take to execute right away
(that would happen when value == 0 on the referenceCounting.
Issue Time Tracking
-------------------
Worklog Id: (was: 780826)
Time Spent: 5h (was: 4h 50m)
> Add Option to read messages into paging based on sizing and eliminate caching
> -----------------------------------------------------------------------------
>
> Key: ARTEMIS-3850
> URL: https://issues.apache.org/jira/browse/ARTEMIS-3850
> Project: ActiveMQ Artemis
> Issue Type: New Feature
> Affects Versions: 2.22.0
> Reporter: Clebert Suconic
> Assignee: Clebert Suconic
> Priority: Major
> Fix For: 2.24.0
>
> Time Spent: 5h
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.20.7#820007)