@Override protected RegionEntry basicPutEntry(EntryEventImpl event, long lastModified) throws TimeoutException, CacheWriterException { final boolean isTraceEnabled = logger.isTraceEnabled(); if (isTraceEnabled) { logger.trace("basicPutEntry invoked for event {}", event); } if (this.requiresOneHopForMissingEntry(event)) { // bug #45704: see if a one-hop must be done for this operation RegionEntry re = getRegionEntry(event.getKey()); if (re == null /*|| re.isTombstone()*/ || !this.generateVersionTag) { final boolean ifNew = false; final boolean ifOld = false; boolean didDistribute = RemotePutMessage.distribute(event, lastModified, ifNew, ifOld, null, false, !this.generateVersionTag); if (!this.generateVersionTag && !didDistribute) { throw new PersistentReplicatesOfflineException(); } if (didDistribute && isTraceEnabled) { logger.trace("Event after remotePut for basicPutEntry: {}", event); } } } return super.basicPutEntry(event, lastModified); }
throw new IllegalStateException(LocalizedStrings.DistributedRegion_NOT_ALLOWED_TO_DO_A_LOCAL_INVALIDATION_ON_A_REPLICATED_REGION.toLocalizedString()); if (this.requiresOneHopForMissingEntry(event)) {
protected RegionEntry basicPutEntry(EntryEventImpl event, final TXStateInterface tx, long lastModified) throws TimeoutException, CacheWriterException { if (getLogWriterI18n().finerEnabled()) { getLogWriterI18n().finer("basicPutEntry invoked for event " + event); } if (this.requiresOneHopForMissingEntry(event)) { // bug #45704: see if a one-hop must be done for this operation RegionEntry re = getRegionEntry(event.getKey()); if (re == null /*|| re.isTombstone()*/ || !this.generateVersionTag) { final boolean ifNew = false; final boolean ifOld = false; boolean didDistribute = RemotePutMessage.distribute(event, lastModified, ifNew, ifOld, null, false, !this.generateVersionTag); if (!this.generateVersionTag && !didDistribute) { throw new PersistentReplicatesOfflineException(); } if (didDistribute) { if (getLogWriterI18n().finerEnabled()) { getLogWriterI18n().finer("Event after remotePut for basicPutEntry: " + event); } } } } return super.basicPutEntry(event, lastModified); }
if (this.requiresOneHopForMissingEntry(event)) {
throw new IllegalStateException(LocalizedStrings.DistributedRegion_NOT_ALLOWED_TO_DO_A_LOCAL_INVALIDATION_ON_A_REPLICATED_REGION.toLocalizedString()); if (this.requiresOneHopForMissingEntry(event)) {
if (this.requiresOneHopForMissingEntry(event)) {
if (this.requiresOneHopForMissingEntry(event)) {
if (this.requiresOneHopForMissingEntry(event)) {