final List<Data> keyValueSequence = this.keyValueSequence;
if (keyValueSequence == null || keyValueSequence.isEmpty()) {
return;
}
final int partitionId = getPartitionId();
final MapService mapService = this.mapService;
final RecordStore recordStore = mapService.getMapServiceContext().getRecordStore(partitionId, name);
for (int i = 0; i < keyValueSequence.size(); i += 2) {
final Data key = keyValueSequence.get(i);
final Data dataValue = keyValueSequence.get(i + 1);
// here object conversion is for interceptors.
final Object objectValue = mapService.getMapServiceContext().toObject(dataValue);
final Object previousValue = recordStore.putFromLoad(key, objectValue);
callAfterPutInterceptors(objectValue);
publishEntryEvent(key, mapService.getMapServiceContext().toData(previousValue), dataValue);
publishWanReplicationEvent(key, dataValue, recordStore.getRecord(key));
}
}