private void publishWanReplicationEvent() { assert entryWasModified(); if (eventType == REMOVED) { mapOperation.publishWanRemove(dataKey); } else { mapOperation.publishWanUpdate(dataKey, newValue); } }
private void publishWanReplicationEvent() { assert entryWasModified(); if (eventType == REMOVED) { mapOperation.publishWanRemove(dataKey); } else { mapOperation.publishWanUpdate(dataKey, newValue); } }
private EntryOperator operateOnKeyValueInternal(Data dataKey, Object oldValue, Boolean locked) { init(dataKey, oldValue, null, null, null); Map.Entry entry = createMapEntry(dataKey, oldValue, locked); if (outOfPredicateScope(entry)) { return this; } process(entry); findModificationType(entry); newValue = entry.getValue(); if (readOnly && entryWasModified()) { throwModificationInReadOnlyException(); } return this; }
private EntryOperator operateOnKeyValueInternal(Data dataKey, Object oldValue, Boolean locked) { init(dataKey, oldValue, null, null, null); Map.Entry entry = createMapEntry(dataKey, oldValue, locked); if (outOfPredicateScope(entry)) { return this; } process(entry); findModificationType(entry); newValue = entry.getValue(); if (readOnly && entryWasModified()) { throwModificationInReadOnlyException(); } return this; }