public final boolean execute(final Object txes) { if (txes instanceof TXEntryState) { tmpEntryCount += ((TXEntryState)txes).entryCountMod(); } return true; } });
/** * Returns the total number of modifications made by this transaction * to this region's entry count. The result will have a +1 for every * create and a -1 for every destroy. */ int entryCountMod() { int result = 0; Iterator it = this.entryMods.values().iterator(); while (it.hasNext()) { TXEntryState es = (TXEntryState)it.next(); result += es.entryCountMod(); } return result; }