/** * TODO: IGNITE-3500: do we need to generate event and invalidate value? * * @return {@code true} if expired. * @throws IgniteCheckedException In case of failure. */ private boolean checkExpired() throws IgniteCheckedException { assert lock.isHeldByCurrentThread(); long expireTime = expireTimeExtras(); if (expireTime > 0) { long delta = expireTime - U.currentTimeMillis(); if (delta <= 0) { if (cctx.mvccEnabled()) cctx.offheap().mvccRemoveAll(this); else removeValue(); return true; } } return false; }
cctx.offheap().mvccRemoveAll(this); else removeValue();
cctx.offheap().mvccRemoveAll(this); else removeValue();
cctx.offheap().mvccRemoveAll(this); else removeValue();
cctx.offheap().mvccRemoveAll(this); else removeValue();
cctx.offheap().mvccRemoveAll((GridCacheMapEntry)cctx.cache().entryEx(key));
/** * TODO: IGNITE-3500: do we need to generate event and invalidate value? * * @return {@code true} if expired. * @throws IgniteCheckedException In case of failure. */ private boolean checkExpired() throws IgniteCheckedException { assert lock.isHeldByCurrentThread(); long expireTime = expireTimeExtras(); if (expireTime > 0) { long delta = expireTime - U.currentTimeMillis(); if (delta <= 0) { if (cctx.mvccEnabled()) cctx.offheap().mvccRemoveAll(this); else removeValue(); return true; } } return false; }
/** {@inheritDoc} */ @Override public boolean invalidate(GridCacheVersion newVer) throws IgniteCheckedException { lockEntry(); try { assert newVer != null; value(null); ver = newVer; flags &= ~IS_EVICT_DISABLED; if (cctx.mvccEnabled()) cctx.offheap().mvccRemoveAll(this); else removeValue(); onInvalidate(); return obsoleteVersionExtras() != null; } finally { unlockEntry(); } }
cctx.offheap().mvccRemoveAll(this); else removeValue();
cctx.offheap().mvccRemoveAll(this); else removeValue();
cctx.offheap().mvccRemoveAll(this); else removeValue();
cctx.offheap().mvccRemoveAll(this); else removeValue();