private EntryEventImpl createNewEvent(LocalRegion region, VersionTag tag, Object key) { EntryEventImpl updateTimeStampEvent = EntryEventImpl.createVersionTagHolder(tag); updateTimeStampEvent.setOperation(Operation.UPDATE_VERSION_STAMP); updateTimeStampEvent.setRegion(region); if (region instanceof PartitionedRegion) { updateTimeStampEvent.setKeyInfo(((PartitionedRegion)region).getKeyInfo(key)); } else { updateTimeStampEvent.setKeyInfo(new KeyInfo(key, null, 0)); } updateTimeStampEvent.setGenerateCallbacks(false); updateTimeStampEvent.distributedMember = region.getSystem().getDistributedMember(); updateTimeStampEvent.setNewEventId(region.getSystem()); return updateTimeStampEvent; }
private EntryEventImpl createNewEvent(LocalRegion region, VersionTag tag, Object key, Object value) { EntryEventImpl updateEvent = EntryEventImpl.createVersionTagHolder(tag); updateEvent.setOperation(Operation.UPDATE); updateEvent.setRegion(region); if (region instanceof PartitionedRegion) { updateEvent.setKeyInfo(((PartitionedRegion)region).getKeyInfo(key)); } else { updateEvent.setKeyInfo(new KeyInfo(key, value, null)); } updateEvent.setNewValue(value); updateEvent.setGenerateCallbacks(true); updateEvent.distributedMember = region.getSystem().getDistributedMember(); updateEvent.setNewEventId(region.getSystem()); return updateEvent; }
event.setVersionTag(tag); event.setEventId(new EventID(cache.getDistributedSystem())); event.setKeyInfo(((PartitionedRegion)region).getKeyInfo(key)); dpao.addEntry(event, event.getBucketId());
Operation.CREATE, null, null, null, true, null, false, false); try { ev.setKeyInfo(this.region.getKeyInfo(entry.key, tmpValue, null)); ev.setNewValue(tmpValue);
DistTxKeyInfo distKeyInfo = new DistTxKeyInfo(keyInfo); distKeyInfo.setCheckPrimary(false); ev.setKeyInfo(distKeyInfo);
DistTxKeyInfo distKeyInfo = new DistTxKeyInfo(keyInfo); distKeyInfo.setCheckPrimary(false); ev.setKeyInfo(distKeyInfo);
try { updateTimeStampEvent.setOperation(Operation.UPDATE_VERSION_STAMP); updateTimeStampEvent.setKeyInfo(event); updateTimeStampEvent.setGenerateCallbacks(false); updateTimeStampEvent.distributedMember = event.getDistributedMember();
try { updateTimeStampEvent.setOperation(Operation.UPDATE_VERSION_STAMP); updateTimeStampEvent.setKeyInfo(event.getKeyInfo()); updateTimeStampEvent.setGenerateCallbacks(false); updateTimeStampEvent.distributedMember = event.getDistributedMember();