@Override public List getOperations() { byte[] valueBytes = null; Object valueObj = null; if (this.newValueObj != null) { if (this.deserializationPolicy == DistributedCacheOperation.DESERIALIZATION_POLICY_EAGER) { valueObj = this.newValueObj; } else { valueBytes = EntryEventImpl.serialize(this.newValueObj); } } else { valueBytes = this.newValue; } return Collections.singletonList(new QueuedOperation(getOperation(), this.key, valueBytes, valueObj, this.deserializationPolicy, this.callbackArg)); }
@Override public List getOperations() { byte[] valueBytes = null; Object valueObj = null; if (this.newValueObj != null) { if (this.deserializationPolicy == DistributedCacheOperation.DESERIALIZATION_POLICY_EAGER) { valueObj = this.newValueObj; } else { valueBytes = EntryEventImpl.serialize(this.newValueObj); } } else { valueBytes = this.newValue; } return Collections.singletonList(new QueuedOperation(getOperation(), this.key, valueBytes, valueObj, this.deserializationPolicy, this.callbackArg)); }
protected EntryEventImpl createEntryEvent(DistributedRegion rgn) { Object argNewValue = null; final boolean originRemote = true, generateCallbacks = true; if (rgn.keyRequiresRegionContext()) { final KeyWithRegionContext key = (KeyWithRegionContext)this.key; if (this.newValue != null) { key.afterDeserializationWithValue(this.newValue); } else if (!(this.newValueObj instanceof com.gemstone.gemfire.internal .cache.delta.Delta)) { key.afterDeserializationWithValue(this.newValueObj); } key.setRegionContext(rgn); } EntryEventImpl result = EntryEventImpl.create(rgn, getOperation(), this.key, argNewValue, // oldValue, this.callbackArg, originRemote, getSender(), generateCallbacks); setOldValueInEvent(result); result.setTailKey(this.tailKey); if (this.versionTag != null) { result.setVersionTag(this.versionTag); } return result; }
protected EntryEventImpl createEntryEvent(DistributedRegion rgn) { Object argNewValue = null; final boolean originRemote = true, generateCallbacks = true; if (rgn.keyRequiresRegionContext()) { ((KeyWithRegionContext)this.key).setRegionContext(rgn); } EntryEventImpl result = EntryEventImpl.create(rgn, getOperation(), this.key, argNewValue, // oldValue, this.callbackArg, originRemote, getSender(), generateCallbacks); setOldValueInEvent(result); result.setTailKey(this.tailKey); if (this.versionTag != null) { result.setVersionTag(this.versionTag); } return result; }
@Override public ConflationKey getConflationKey() { if (!super.regionAllowsConflation || this.directAck || getProcessorId() != 0) { // if the publisher's region attributes do not support conflation // or if it is an ack region // then don't even bother with a conflation key return null; } else { // only conflate if it is not a create // and we don't want an ack return new ConflationKey(this.key, super.regionPath, getOperation() .isUpdate()); } }
@Override public ConflationKey getConflationKey() { if (!super.regionAllowsConflation || this.directAck || getProcessorId() != 0) { // if the publisher's region attributes do not support conflation // or if it is an ack region // then don't even bother with a conflation key return null; } else { // only conflate if it is not a create // and we don't want an ack return new ConflationKey(this.key, super.regionPath, getOperation() .isUpdate()); } }