@Override public Operation getBackupOperation() { Record record = recordStore.getRecord(dataKey); RecordInfo replicationInfo = buildRecordInfo(record); if (isPostProcessing(recordStore)) { dataValue = mapServiceContext.toData(record.getValue()); } return new PutBackupOperation(name, dataKey, dataValue, replicationInfo, shouldUnlockKeyOnBackup(), putTransient, !canThisOpGenerateWANEvent()); }
@Override public Operation getBackupOperation() { Record record = recordStore.getRecord(dataKey); RecordInfo replicationInfo = buildRecordInfo(record); if (isPostProcessing(recordStore)) { dataValue = mapServiceContext.toData(record.getValue()); } return new PutBackupOperation(name, dataKey, dataValue, replicationInfo, shouldUnlockKeyOnBackup(), putTransient, !canThisOpGenerateWANEvent()); }
@Override public void afterRun() { mapServiceContext.interceptAfterPut(name, dataValue); Record record = recordStore.getRecord(dataKey); Object value = isPostProcessing(recordStore) ? record.getValue() : dataValue; mapEventPublisher.publishEvent(getCallerAddress(), name, getEventType(), dataKey, dataOldValue, value, dataMergingValue); invalidateNearCache(dataKey); publishWanUpdate(dataKey, value); evict(dataKey); }
@Override public void afterRun() { mapServiceContext.interceptAfterPut(name, dataValue); Record record = recordStore.getRecord(dataKey); Object value = isPostProcessing(recordStore) ? record.getValue() : dataValue; mapEventPublisher.publishEvent(getCallerAddress(), name, getEventType(), dataKey, dataOldValue, value, dataMergingValue); invalidateNearCache(dataKey); publishWanUpdate(dataKey, value); evict(dataKey); }