/** * @return DHT version for this entry. * @throws GridCacheEntryRemovedException If obsolete. */ @Nullable public GridCacheVersion dhtVersion() throws GridCacheEntryRemovedException { lockEntry(); try { checkObsolete(); return dhtVer; } finally { unlockEntry(); } }
/** * @throws GridCacheEntryRemovedException If entry was removed. */ void reserveEviction() throws GridCacheEntryRemovedException { lockEntry(); try { checkObsolete(); evictReservations++; } finally { unlockEntry(); } }
/** * @return Tuple with version and value of this entry. * @throws GridCacheEntryRemovedException If entry has been removed. */ @Nullable public IgniteBiTuple<GridCacheVersion, CacheObject> versionedValue() throws GridCacheEntryRemovedException { lockEntry(); try { checkObsolete(); if (dhtVer == null) return null; else { CacheObject val0 = val; return F.t(dhtVer, val0); } } finally { unlockEntry(); } }
/** * @param ver Version to set DHT node ID for. * @param dhtNodeId DHT node ID. * @return {@code true} if candidate was found. * @throws GridCacheEntryRemovedException If entry is removed. */ @Nullable public GridCacheMvccCandidate dhtNodeId(GridCacheVersion ver, UUID dhtNodeId) throws GridCacheEntryRemovedException { lockEntry(); try { checkObsolete(); GridCacheMvcc mvcc = mvccExtras(); GridCacheMvccCandidate cand = mvcc == null ? null : mvcc.candidate(ver); if (cand == null) return null; cand.otherNodeId(dhtNodeId); return cand; } finally { unlockEntry(); } }
/** * @return DHT version for this entry. * @throws GridCacheEntryRemovedException If obsolete. */ @Nullable public GridCacheVersion dhtVersion() throws GridCacheEntryRemovedException { lockEntry(); try { checkObsolete(); return dhtVer; } finally { unlockEntry(); } }
/** * @throws GridCacheEntryRemovedException If entry was removed. */ void reserveEviction() throws GridCacheEntryRemovedException { lockEntry(); try { checkObsolete(); evictReservations++; } finally { unlockEntry(); } }
/** * @return Tuple with version and value of this entry. * @throws GridCacheEntryRemovedException If entry has been removed. */ @Nullable public IgniteBiTuple<GridCacheVersion, CacheObject> versionedValue() throws GridCacheEntryRemovedException { lockEntry(); try { checkObsolete(); if (dhtVer == null) return null; else { CacheObject val0 = val; return F.t(dhtVer, val0); } } finally { unlockEntry(); } }
/** * @param ver Version to set DHT node ID for. * @param dhtNodeId DHT node ID. * @return {@code true} if candidate was found. * @throws GridCacheEntryRemovedException If entry is removed. */ @Nullable public GridCacheMvccCandidate dhtNodeId(GridCacheVersion ver, UUID dhtNodeId) throws GridCacheEntryRemovedException { lockEntry(); try { checkObsolete(); GridCacheMvcc mvcc = mvccExtras(); GridCacheMvccCandidate cand = mvcc == null ? null : mvcc.candidate(ver); if (cand == null) return null; cand.otherNodeId(dhtNodeId); return cand; } finally { unlockEntry(); } }