/** * Fills in a set of any entries created by this transaction for the provided region. * @param ret the HashSet to fill in with key objects */ void fillInCreatedEntryKeys(HashSet ret) { Iterator<Entry<Object, TXEntryState>> it = this.entryMods.entrySet().iterator(); while (it.hasNext()) { Entry<Object, TXEntryState> me = it.next(); TXEntryState txes = me.getValue(); if (txes.wasCreatedByTX()) { ret.add(me.getKey()); } } } /**
public final boolean execute(final Object obj) { if(obj instanceof TXEntryState) { if(((TXEntryState)obj).wasCreatedByTX()) { keys.add(((TXEntryState)obj).getUnderlyingRegionEntry()); } } return true; } });
/** * Returns true if this operation has an event for the tx listener * * @since 5.0 */ protected final boolean isOpAnyEvent() { //return isOpPutEvent() || isOpCreateEvent() || isOpInvalidateEvent() // || isOpDestroyEvent(this.txRegionState.region); // return if any operation but check if entry created in TX itself got // destroyed (except if it is an empty region since then we have to // distribute events in any case) return this.op > OP_NULL && (!isOpDestroy() || !wasCreatedByTX() || getBaseRegion().isProxy()); }
if (finerEnabled) { logger.finer("TXBatchMessage#toData: wasCreatedByTX=" + txes.wasCreatedByTX() + " dataRegion=" + dataRegion.getFullPath() + ", entry: " + txes.toString());