public final void initFailedEventsForMember( final InternalDistributedMember member) { if (!handleFailedEvents()) { return; } synchronized (this.failedEvents) { this.failedEvents.putIfAbsent(member, new ArrayList<EventID>()); } }
/** * {@inheritDoc} */ @Override public boolean addPendingTXRegionState(TXRegionState txrs) { if (this.pendingTXRegionStates != null) { // don't add if the advisor has not been initialized yet, that is the // initial CreateRegionMessage replies are still on the wire so all // operations on TXRegionState are essentially ignored final LocalRegion region = txrs.region; if (region.isProfileExchanged()) { Object old; if ((old = this.pendingTXRegionStates.putIfAbsent(txrs.getTXState() .getTransactionId(), txrs)) != null) { Assert.fail("ImageState#addPendingTXRegionState: failed to add " + txrs + ", existing=" + old); } if (TXStateProxy.LOG_FINE) { final LogWriterI18n logger = region.getLogWriterI18n(); logger.info(LocalizedStrings.DEBUG, "ImageState#addPendingTXRegionState: adding " + txrs); } } return true; } else { return false; } }
final THashMapWithCreate entryMap = checkForTXFinish.booleanValue() ? txr .getEntryMap() : txr.getInternalEntryMap(); if (entryMap.putIfAbsent(key, entry) != null) {