@Override public synchronized void loadValue(final long recordID1, final long value1, long size) { if (this.subscription != null) { // it could be null on testcases... which is ok this.subscription.notEmpty(); } this.value.set(value1); this.added.set(value1); this.persistentSize.set(size); this.addedPersistentSize.set(size); this.recordID = recordID1; }
@Override public void processReload() { if (loadList != null) { if (subscription != null) { // it could be null on testcases subscription.notEmpty(); } for (PendingCounter incElement : loadList) { value.addAndGet(incElement.getCount()); added.addAndGet(incElement.getCount()); persistentSize.addAndGet(incElement.getPersistentSize()); addedPersistentSize.addAndGet(incElement.getPersistentSize()); incrementRecords.add(incElement.getId()); } loadList.clear(); loadList = null; } }
private long[] routeQueues(Transaction tx, RouteContextList ctx) throws Exception { List<org.apache.activemq.artemis.core.server.Queue> durableQueues = ctx.getDurableQueues(); List<org.apache.activemq.artemis.core.server.Queue> nonDurableQueues = ctx.getNonDurableQueues(); long[] ids = new long[durableQueues.size() + nonDurableQueues.size()]; int i = 0; for (org.apache.activemq.artemis.core.server.Queue q : durableQueues) { q.getPageSubscription().notEmpty(); ids[i++] = q.getID(); } for (org.apache.activemq.artemis.core.server.Queue q : nonDurableQueues) { q.getPageSubscription().notEmpty(); ids[i++] = q.getID(); } return ids; }
PageSubscription sub = locateSubscription(pendingCountEncoding.getQueueID(), pageSubscriptions, queueInfos, pagingManager); if (sub != null) { sub.notEmpty();
sub.notEmpty(); } else { ActiveMQServerLogger.LOGGER.journalCannotFindQueueReloadingACK(encoding.getQueueID());