@Override public void run() throws Exception { verifyLock(); try { operator(this).init(dataKey, oldValue, newValue, null, modificationType) .doPostOperateOps(); } finally { unlockKey(); } }
@Override public void run() throws Exception { verifyLock(); try { operator(this).init(dataKey, oldValue, newValue, null, modificationType) .doPostOperateOps(); } finally { unlockKey(); } }
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; }
public EntryOperator operateOnKey(Data dataKey) { init(dataKey, null, null, null, null); if (belongsAnotherPartition(dataKey)) { return this; } oldValue = recordStore.get(dataKey, backup, callerAddress); // predicated entry processors can only be applied to existing entries // so if we have a predicate and somehow(due to expiration or split-brain healing) // we found value null, we should skip that entry. if (predicate != null && oldValue == null) { return this; } Boolean locked = recordStore.isLocked(dataKey); return operateOnKeyValueInternal(dataKey, clonedOrRawOldValue(), locked); }
public EntryOperator operateOnKey(Data dataKey) { init(dataKey, null, null, null, null); if (belongsAnotherPartition(dataKey)) { return this; } oldValue = recordStore.get(dataKey, backup, callerAddress); // predicated entry processors can only be applied to existing entries // so if we have a predicate and somehow(due to expiration or split-brain healing) // we found value null, we should skip that entry. if (predicate != null && oldValue == null) { return this; } Boolean locked = recordStore.isLocked(dataKey); return operateOnKeyValueInternal(dataKey, clonedOrRawOldValue(), locked); }