/** * @return {@code True} if has write value set. */ public boolean hasWriteValue() { return val.hasWriteValue(); }
/** * @param op Operation. * @param val Value to set. */ void setAndMarkValid(GridCacheOperation op, CacheObject val) { setAndMarkValid(op, val, this.val.hasWriteValue(), this.val.hasReadValue()); }
/** * @param val Value to set. */ public void setAndMarkValid(CacheObject val) { setAndMarkValid(op(), val, this.val.hasWriteValue(), this.val.hasReadValue()); }
/** * Marks this entry as value-has-bean-read. Effectively, makes values enlisted to transaction visible * to further peek operations. */ public void markValid() { prevVal.value(val.op(), val.value(), val.hasWriteValue(), val.hasReadValue()); }
/** * @param ctx Context. * @return Clean copy of this entry. */ public IgniteTxEntry cleanCopy(GridCacheContext<?, ?> ctx) { IgniteTxEntry cp = new IgniteTxEntry(); cp.key = key; cp.cacheId = cacheId; cp.ctx = ctx; cp.val = new TxEntryValueHolder(); cp.filters = filters; cp.val.value(val.op(), val.value(), val.hasWriteValue(), val.hasReadValue()); cp.entryProcessorsCol = entryProcessorsCol; cp.ttl = ttl; cp.conflictExpireTime = conflictExpireTime; cp.explicitVer = explicitVer; cp.conflictVer = conflictVer; cp.expiryPlc = expiryPlc; cp.flags = flags; cp.serReadVer = serReadVer; return cp; }
/** * @return {@code True} if has write value set. */ public boolean hasWriteValue() { return val.hasWriteValue(); }
/** * @param op Operation. * @param val Value to set. */ void setAndMarkValid(GridCacheOperation op, CacheObject val) { setAndMarkValid(op, val, this.val.hasWriteValue(), this.val.hasReadValue()); }
/** * @param val Value to set. */ public void setAndMarkValid(CacheObject val) { setAndMarkValid(op(), val, this.val.hasWriteValue(), this.val.hasReadValue()); }
/** * Marks this entry as value-has-bean-read. Effectively, makes values enlisted to transaction visible * to further peek operations. */ public void markValid() { prevVal.value(val.op(), val.value(), val.hasWriteValue(), val.hasReadValue()); }
/** * @param ctx Context. * @return Clean copy of this entry. */ public IgniteTxEntry cleanCopy(GridCacheContext<?, ?> ctx) { IgniteTxEntry cp = new IgniteTxEntry(); cp.key = key; cp.cacheId = cacheId; cp.ctx = ctx; cp.val = new TxEntryValueHolder(); cp.filters = filters; cp.val.value(val.op(), val.value(), val.hasWriteValue(), val.hasReadValue()); cp.entryProcessorsCol = entryProcessorsCol; cp.ttl = ttl; cp.conflictExpireTime = conflictExpireTime; cp.explicitVer = explicitVer; cp.conflictVer = conflictVer; cp.expiryPlc = expiryPlc; cp.flags = flags; cp.serReadVer = serReadVer; return cp; }