20672068206920702071207220732074207520762077
postOffice.route(copyMessage, tx, false, rejectDuplicate); acknowledge(tx, ref); tx.commit(); } /* * This method delivers the reference on the callers thread - this can give us better latency in the case there is nothing in the queue */
863864865866867868869870871872873
deliveringCount.incrementAndGet(); acknowledge(tx, messageReference); count++; } tx.commit(); return count; } public synchronized boolean deleteReference(final long messageID) throws Exception
890891892893894895896897898899900
deleted = true; break; } } tx.commit(); return deleted; } public synchronized boolean expireReference(final long messageID) throws Exception
934935936937938939940941942943944
refRemoved(ref); count++; } } tx.commit(); return count; } public synchronized void expireReferences() throws Exception
10951096109710981099110011011102110311041105
count++; move(toAddress, tx, ref, false, rejectDuplicates); acknowledge(tx, ref); } tx.commit(); return count; } catch (Exception e) {
16031604160516061607160816091610161116121613
postOffice.route(copyMessage, tx, false); acknowledge(tx, ref); tx.commit(); } /* * This method delivers the reference on the callers thread - this can give us better latency in the case there is nothing in the queue */
12161217121812191220122112221223122412251226
} } if (txCount > 0) { tx.commit(); tx = new TransactionImpl(storageManager); txCount = 0; }
12331234123512361237123812391240124112421243
txCount++; } if (txCount > 0) { tx.commit(); tx = new TransactionImpl(storageManager); txCount = 0; }
12591260126112621263126412651266126712681269
addTail(reference, false); } if (txCount > 0 && txCount % flushLimit == 0) { tx.commit(); tx = new TransactionImpl(storageManager); txCount = 0; } } }
12681269127012711272127312741275127612771278
} } if (txCount > 0) { tx.commit(); tx = null; }