/** {@inheritDoc} */ @Override public final boolean hasValue() { lockEntry(); try { return hasValueUnlocked(); } finally { unlockEntry(); } }
/** {@inheritDoc} */ @Override public final boolean obsoleteOrDeleted() { lockEntry(); try { return obsoleteVersionExtras() != null || (cctx.deferredDelete() && (deletedUnlocked() || !hasValueUnlocked())); } finally { unlockEntry(); } }
/** {@inheritDoc} */ @Override public void updateTtl(@Nullable GridCacheVersion ver, long ttl) throws GridCacheEntryRemovedException { lockEntry(); try { checkObsolete(); if (hasValueUnlocked()) { try { updateTtl(ttl); } catch (IgniteCheckedException e) { U.error(log, "Failed to update TTL: " + e, e); } } /* TODO IGNITE-305. try { if (var == null || ver.equals(version())) updateTtl(ttl); } catch (GridCacheEntryRemovedException ignored) { // No-op. } */ } finally { unlockEntry(); } }
ttl = hasValueUnlocked() ? expiry.forUpdate() : expiry.forCreate();
return false; if (hasValueUnlocked()) { long expireTime = expireTimeExtras();
val != null, evtOld, evtOld != null || hasValueUnlocked(), subjId, null, taskName, keepBinary);
false, evtOld, evtOld != null || hasValueUnlocked(), subjId, null,
if (expiryPlc != null && !readFromStore && !cctx.putIfAbsentFilter(filter) && hasValueUnlocked()) updateTtl(expiryPlc); if (expiryPlc != null && !readFromStore && hasValueUnlocked()) updateTtl(expiryPlc); boolean hadVal = hasValueUnlocked();
/** {@inheritDoc} */ @Override public final boolean hasValue() { lockEntry(); try { return hasValueUnlocked(); } finally { unlockEntry(); } }
/** {@inheritDoc} */ @Override public final boolean obsoleteOrDeleted() { lockEntry(); try { return obsoleteVersionExtras() != null || (cctx.deferredDelete() && (deletedUnlocked() || !hasValueUnlocked())); } finally { unlockEntry(); } }
/** {@inheritDoc} */ @Override public void updateTtl(@Nullable GridCacheVersion ver, long ttl) throws GridCacheEntryRemovedException { lockEntry(); try { checkObsolete(); if (hasValueUnlocked()) { try { updateTtl(ttl); } catch (IgniteCheckedException e) { U.error(log, "Failed to update TTL: " + e, e); } } /* TODO IGNITE-305. try { if (var == null || ver.equals(version())) updateTtl(ttl); } catch (GridCacheEntryRemovedException ignored) { // No-op. } */ } finally { unlockEntry(); } }
ttl = hasValueUnlocked() ? expiry.forUpdate() : expiry.forCreate();
return false; if (hasValueUnlocked()) { long expireTime = expireTimeExtras();
val != null, evtOld, evtOld != null || hasValueUnlocked(), subjId, null, taskName, keepBinary);
false, evtOld, evtOld != null || hasValueUnlocked(), subjId, null,
if (expiryPlc != null && !readFromStore && !cctx.putIfAbsentFilter(filter) && hasValueUnlocked()) updateTtl(expiryPlc); if (expiryPlc != null && !readFromStore && hasValueUnlocked()) updateTtl(expiryPlc); boolean hadVal = hasValueUnlocked();