/** * @see TXStateProxy#hasPreCommitActions() */ @Override public boolean hasPreCommitActions() { // lock should be already held assert this.lock.isLocked(); return this.dbOps.size() > 0; }
/** * @see TXStateProxy#hasPreCommitActions() */ @Override public boolean hasPreCommitActions() { // lock should be already held assert this.lock.isLocked(); return this.dbOps.size() > 0; }
/** * @see TXStateProxy#hasPreCommitActions() */ @Override public boolean hasPreCommitActions() { // lock should be already held assert this.lock.isLocked(); return this.dbOps.size() > 0; }
@edu.umd.cs.findbugs.annotations.SuppressWarnings(value="VO_VOLATILE_INCREMENT") final void addPendingOp(final Object op, final LocalRegion dataRegion) { assert this.headLock.isLocked(); if (TXStateProxy.LOG_FINEST) { dataRegion.getLogWriterI18n().info(LocalizedStrings.DEBUG, "addPendingOp: adding op=" + op + " in dataRegion " + dataRegion.getFullPath()); } this.pendingOps.add(op); this.pendingOpsRegions.add(dataRegion); ++this.numPendingOperations; // mark node as having cohorts this.proxy.hasCohorts = true; }
@edu.umd.cs.findbugs.annotations.SuppressWarnings(value="VO_VOLATILE_INCREMENT") final void removePendingOp(final Object op) { assert this.headLock.isLocked(); // usually expect to be at the end, so start search from end for (int index = this.pendingOps.size() - 1; index >= 0; index--) { if (op.equals(this.pendingOps.get(index))) { if (TXStateProxy.LOG_FINEST) { getTxMgr().getLogger().info(LocalizedStrings.DEBUG, "removePendingOp: removing op=" + op + " in dataRegion " + ((LocalRegion)this.pendingOpsRegions.get(index)) .getFullPath()); } this.pendingOps.remove(index); this.pendingOpsRegions.remove(index); --this.numPendingOperations; break; } } }
assert txState.headLock.isLocked();
public void preCommit() { assert this.lock.isLocked();
public void preCommit() { assert this.lock.isLocked();
public void preCommit() { assert this.lock.isLocked();
throws IllegalStateException { Assert.assertTrue(this.vmIdLock.isLocked());