private void put(Data dataKey, Data dataValue) { Object oldValue = putToRecordStore(dataKey, dataValue); dataValue = getValueOrPostProcessedValue(dataKey, dataValue); mapServiceContext.interceptAfterPut(name, dataValue); if (hasMapListener) { EntryEventType eventType = (oldValue == null ? ADDED : UPDATED); mapEventPublisher.publishEvent(getCallerAddress(), name, eventType, dataKey, oldValue, dataValue); } if (hasWanReplication) { publishWanUpdate(dataKey, dataValue); } if (hasBackups) { Record record = recordStore.getRecord(dataKey); RecordInfo replicationInfo = buildRecordInfo(record); backupRecordInfos.add(replicationInfo); } evict(dataKey); if (hasInvalidation) { invalidationKeys.add(dataKey); } }
private void put(Data dataKey, Data dataValue) { Object oldValue = putToRecordStore(dataKey, dataValue); dataValue = getValueOrPostProcessedValue(dataKey, dataValue); mapServiceContext.interceptAfterPut(name, dataValue); if (hasMapListener) { EntryEventType eventType = (oldValue == null ? ADDED : UPDATED); mapEventPublisher.publishEvent(getCallerAddress(), name, eventType, dataKey, oldValue, dataValue); } if (hasWanReplication) { publishWanUpdate(dataKey, dataValue); } if (hasBackups) { Record record = recordStore.getRecord(dataKey); RecordInfo replicationInfo = buildRecordInfo(record); backupRecordInfos.add(replicationInfo); } evict(dataKey); if (hasInvalidation) { invalidationKeys.add(dataKey); } }