@Override public Void doTask() throws Exception { /* * Note: In this case the [revisionTime] will be LT the * [commitTime]. That's Ok as long as the issued revision times are * strictly increasing, which they are. */ final long revisionTime = localTransactionManager.nextTimestamp(); /* * Lock out other operations on this tx. */ state.lock.lockInterruptibly(); try { // Note: throws ValidationError. state.prepare(revisionTime); } finally { state.lock.unlock(); } return null; }
@Override public Void doTask() throws Exception { /* * Note: In this case the [revisionTime] will be LT the * [commitTime]. That's Ok as long as the issued revision times are * strictly increasing, which they are. */ final long revisionTime = localTransactionManager.nextTimestamp(); /* * Lock out other operations on this tx. */ state.lock.lockInterruptibly(); try { // Note: throws ValidationError. state.prepare(revisionTime); } finally { state.lock.unlock(); } return null; }
/** * Report the next timestamp assigned by the {@link ITransactionService}. */ protected long nextTimestamp() { final ILocalTransactionManager transactionManager = getConcurrencyManager() .getTransactionManager(); return transactionManager.nextTimestamp(); }
/** * Report the next timestamp assigned by the {@link ITransactionService}. */ protected long nextTimestamp() { final ILocalTransactionManager transactionManager = getConcurrencyManager() .getTransactionManager(); return transactionManager.nextTimestamp(); }
final long t = transactionManager.nextTimestamp(); if (t > lastCommitTime) {
final long t = transactionManager.nextTimestamp(); if (t > lastCommitTime) {
return journal.getLocalTransactionManager().nextTimestamp();
return journal.getLocalTransactionManager().nextTimestamp();