/** * * @param key Entry key. */ public final void removeIfObsolete(KeyCacheObject key) { assert key != null; GridCacheMapEntry entry = map.getEntry(ctx, key); if (entry != null && entry.obsolete()) removeEntry(entry); }
assert !obsolete() : this;
/** * @param key Entry key. * @param topVer Topology version at the time of creation. * @param create Flag to create entry if it does not exist. * @param touch Flag to touch created entry (only if entry was actually created). * @return Entry or <tt>null</tt>. */ @Nullable private GridCacheEntryEx entry0(KeyCacheObject key, AffinityTopologyVersion topVer, boolean create, boolean touch) { GridCacheMapEntry cur = map.getEntry(ctx, key); if (cur == null || cur.obsolete()) { cur = map.putEntryIfObsoleteOrAbsent( ctx, topVer, key, create, touch); } return cur; }
if (entry.obsolete()) {
assert !obsolete() : this;
assert !obsolete();
/** {@inheritDoc} */ @Nullable @Override public GridCacheEntryInfo info() { GridCacheEntryInfo info = null; lockEntry(); try { if (!obsolete()) { info = new GridCacheEntryInfo(); info.key(key); info.cacheId(cctx.cacheId()); long expireTime = expireTimeExtras(); boolean expired = expireTime != 0 && expireTime <= U.currentTimeMillis(); info.ttl(ttlExtras()); info.expireTime(expireTime); info.version(ver); info.setNew(isStartVersion()); info.setDeleted(deletedUnlocked()); if (!expired) info.value(val); } } finally { unlockEntry(); } return info; }
if (entry.obsolete()) { doomed = entry;
if (obsolete()) return false;
if (obsolete()) return Collections.emptyList();
/** * * @param key Entry key. */ public final void removeIfObsolete(KeyCacheObject key) { assert key != null; GridCacheMapEntry entry = map.getEntry(ctx, key); if (entry != null && entry.obsolete()) removeEntry(entry); }
/** * @param key Entry key. * @param topVer Topology version at the time of creation. * @param create Flag to create entry if it does not exist. * @param touch Flag to touch created entry (only if entry was actually created). * @return Entry or <tt>null</tt>. */ @Nullable private GridCacheEntryEx entry0(KeyCacheObject key, AffinityTopologyVersion topVer, boolean create, boolean touch) { GridCacheMapEntry cur = map.getEntry(ctx, key); if (cur == null || cur.obsolete()) { cur = map.putEntryIfObsoleteOrAbsent( ctx, topVer, key, create, touch); } return cur; }
if (entry.obsolete()) {
/** {@inheritDoc} */ @Nullable @Override public GridCacheEntryInfo info() { GridCacheEntryInfo info = null; lockEntry(); try { if (!obsolete()) { info = new GridCacheEntryInfo(); info.key(key); info.cacheId(cctx.cacheId()); long expireTime = expireTimeExtras(); boolean expired = expireTime != 0 && expireTime <= U.currentTimeMillis(); info.ttl(ttlExtras()); info.expireTime(expireTime); info.version(ver); info.setNew(isStartVersion()); info.setDeleted(deletedUnlocked()); if (!expired) info.value(val); } } finally { unlockEntry(); } return info; }
if (entry.obsolete()) { doomed = entry;
if (obsolete()) return false;
if (obsolete()) return Collections.emptyList();