/** * Stores value in offheap. * * @param val Value. * @param expireTime Expire time. * @param ver New entry version. * @throws IgniteCheckedException If update failed. */ protected boolean storeValue(@Nullable CacheObject val, long expireTime, GridCacheVersion ver) throws IgniteCheckedException { return storeValue(val, expireTime, ver, null); }
/** * @param ttl Time to live. */ private void updateTtl(long ttl) throws IgniteCheckedException, GridCacheEntryRemovedException { assert ttl >= 0 || ttl == CU.TTL_ZERO : ttl; assert lock.isHeldByCurrentThread(); long expireTime; if (ttl == CU.TTL_ZERO) { ttl = CU.TTL_MINIMUM; expireTime = CU.expireTimeInPast(); } else expireTime = CU.toExpireTime(ttl); ttlAndExpireTimeExtras(ttl, expireTime); cctx.shared().database().checkpointReadLock(); try { storeValue(val, expireTime, ver); } finally { cctx.shared().database().checkpointReadUnlock(); } }
storeValue(val, expTime, newVer);
storeValue(ret, expTime, nextVer);
storeValue(ret, expTime, nextVer);
storeValue(val, expireTime, newVer);
storeValue(old, expireTime, ver); else removeValue(); storeValue(updated, expireTime, ver);
storeValue(val, expTime, ver); update = storeValue(val, expTime, ver, p);
/** * Stores value in offheap. * * @param val Value. * @param expireTime Expire time. * @param ver New entry version. * @throws IgniteCheckedException If update failed. */ protected boolean storeValue(@Nullable CacheObject val, long expireTime, GridCacheVersion ver) throws IgniteCheckedException { return storeValue(val, expireTime, ver, null); }
/** * @param ttl Time to live. */ private void updateTtl(long ttl) throws IgniteCheckedException, GridCacheEntryRemovedException { assert ttl >= 0 || ttl == CU.TTL_ZERO : ttl; assert lock.isHeldByCurrentThread(); long expireTime; if (ttl == CU.TTL_ZERO) { ttl = CU.TTL_MINIMUM; expireTime = CU.expireTimeInPast(); } else expireTime = CU.toExpireTime(ttl); ttlAndExpireTimeExtras(ttl, expireTime); cctx.shared().database().checkpointReadLock(); try { storeValue(val, expireTime, ver); } finally { cctx.shared().database().checkpointReadUnlock(); } }
cctx.offheap().mvccInitialValue(this, val, newVer, expTime); else storeValue(val, expTime, newVer);
cctx.offheap().mvccInitialValue(this, ret, nextVer, expTime); else storeValue(ret, expTime, nextVer);
storeValue(val, expireTime, newVer);
cctx.offheap().mvccInitialValue(this, ret, nextVer, expTime); else storeValue(ret, expTime, nextVer);
storeValue(old, expireTime, ver); else removeValue(); storeValue(updated, expireTime, ver);
storeValue(val, expTime, ver); update = storeValue(val, expTime, ver, p);