public class GridNearCacheEntry extends GridDistributedCacheEntry
GridMetadataAwareAdapter.EntryKeyATOMIC_VER_COMPARATOR, cctx, DFLT_LOCK_TIMEOUT_ENV, ENTRY_LOCK_TIMEOUT_ENV, flags, key, log, logRef, val, ver| Constructor and Description |
|---|
GridNearCacheEntry(GridCacheContext ctx,
KeyCacheObject key) |
| Modifier and Type | Method and Description |
|---|---|
GridCacheMvccCandidate |
addLocal(long threadId,
GridCacheVersion ver,
AffinityTopologyVersion topVer,
long timeout,
boolean reenter,
boolean tx,
boolean implicitSingle,
boolean read)
Add local candidate.
|
@Nullable GridCacheMvccCandidate |
dhtNodeId(GridCacheVersion ver,
UUID dhtNodeId) |
@Nullable GridCacheVersion |
dhtVersion() |
protected boolean |
evictionDisabled() |
void |
initializeFromDht(AffinityTopologyVersion topVer) |
boolean |
isNear() |
boolean |
loadedValue(@Nullable IgniteInternalTx tx,
UUID primaryNodeId,
CacheObject val,
GridCacheVersion ver,
GridCacheVersion dhtVer,
long ttl,
long expireTime,
boolean evt,
boolean keepBinary,
AffinityTopologyVersion topVer,
UUID subjId) |
protected WALPointer |
logTxUpdate(IgniteInternalTx tx,
CacheObject val,
long expireTime,
long updCntr) |
protected void |
logUpdate(GridCacheOperation op,
CacheObject val,
GridCacheVersion ver,
long expireTime,
long updCntr) |
int |
memorySize() |
protected void |
onInvalidate()
Called when entry invalidated.
|
void |
onMarkedObsolete()
This method should be called each time entry is marked obsolete
other than by calling
GridCacheEntryEx.markObsolete(GridCacheVersion). |
int |
partition() |
protected Object |
readThrough(IgniteInternalTx tx,
KeyCacheObject key,
boolean reload,
UUID subjId,
String taskName) |
boolean |
recordDhtVersion(GridCacheVersion dhtVer) |
protected void |
recordNodeId(UUID primaryNodeId,
AffinityTopologyVersion topVer) |
@Nullable GridCacheMvccCandidate |
removeLock()
Unlocks local lock.
|
protected void |
removeValue()
Removes value from offheap.
|
boolean |
resetFromPrimary(CacheObject val,
GridCacheVersion ver,
GridCacheVersion dhtVer,
UUID primaryNodeId,
AffinityTopologyVersion topVer)
This method should be called only when lock is owned on this entry.
|
protected boolean |
storeValue(CacheObject val,
long expireTime,
GridCacheVersion ver)
Stores value in offheap.
|
String |
toString() |
@Nullable CacheDataRow |
unswap(CacheDataRow row,
boolean checkExpire)
Unswaps an entry.
|
void |
updateOrEvict(GridCacheVersion dhtVer,
@Nullable CacheObject val,
long expireTime,
long ttl,
UUID primaryNodeId,
AffinityTopologyVersion topVer)
This method should be called only when lock is owned on this entry.
|
boolean |
valid(AffinityTopologyVersion topVer) |
@Nullable IgniteBiTuple<GridCacheVersion,CacheObject> |
versionedValue() |
addRemote, addRemoved, checkCallbacks, checkRemoved, checkThreadChain, doneRemote, readyLock, readyNearLock, recheck, remoteMvccSnapshot, removeExplicitNodeLocks, removeLock, tmLockallVersionsInfo, candidate, candidate, checkObsolete, checkOwnerChanged, checkOwnerChanged, checkSerializableReadVersion, clear, clearReader, clearReaders, clearReserveForLoad, context, decrementMapPublicSize, deleted, deletedUnlocked, deletedUnlocked, detached, equals, evictInternal, expireTime, expireTimeExtras, expireTimeUnlocked, hashCode, hasLockCandidate, hasLockCandidate, hasLockCandidateUnsafe, hasReaders, hasValue, hasValueUnlocked, incrementMapPublicSize, info, initialValue, innerGet, innerGetAndReserveForLoad, innerGetVersioned, innerReload, innerRemove, innerSet, innerUpdate, innerUpdateLocal, invalidate, isDht, isInternal, isLocal, isMvcc, isNew, isNewLocked, isReplicated, isStartVersion, key, keyValue, localCandidate, localCandidates, localOwner, localPartition, lockedBy, lockedByAny, lockedByCurrentThread, lockedByThread, lockedByThread, lockedByThread, lockedByThreadUnsafe, lockedByUnsafe, lockedLocally, lockedLocallyByIdOrThread, lockedLocallyUnsafe, lockEntry, logMvccUpdate, markObsolete, markObsolete0, markObsoleteIfEmpty, markObsoleteVersion, mvccAllLocal, mvccExtras, mvccExtras, mvccLock, mvccPeek, mvccPreloadEntry, mvccRemove, mvccSet, mvccUpdateRowsWithPreloadInfo, nextPartitionCounter, nextPartitionCounter, obsolete, obsolete, obsoleteOrDeleted, obsoleteVersion, obsoleteVersionExtras, onTtlExpired, onUnlock, onUpdateFinished, partitionValid, peek, peek, peekVisibleValue, rawExpireTime, rawGet, rawPut, rawTtl, storeValue, toStringWithTryLock, touch, tryLockEntry, ttl, ttlAndExpireTimeExtras, ttlExtras, txKey, txUnlock, unlockEntry, unswap, unswap, unswap, update, updateIndex, updatePlatformCache, updateTtl, value, valueBytes, valueBytes, valueBytes0, version, versionedEntry, versionedValue, visitable, wrap, wrapEviction, wrapLazyValue, wrapVersionedaddMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, clone, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, removeAllMeta, removeMeta, removeMeta, replaceMetafinalize, getClass, notify, notifyAll, wait, wait, waitaddMeta, hasMeta, initialValue, initialValue, meta, putMetaIfAbsent, removeMeta, removeMeta, replaceMetapublic GridNearCacheEntry(GridCacheContext ctx, KeyCacheObject key)
ctx - Cache context.key - Cache key.public int memorySize()
throws IgniteCheckedException
memorySize in interface GridCacheEntryExmemorySize in class GridCacheMapEntryIgniteCheckedException - If failed.public int partition()
partition in interface GridCacheEntryExpartition in class GridCacheMapEntrypublic boolean isNear()
isNear in interface GridCacheEntryExisNear in class GridCacheMapEntryTrue if near.public boolean valid(AffinityTopologyVersion topVer)
valid in interface GridCacheEntryExvalid in class GridCacheMapEntrytopVer - Topology version where validation should be performed.
When negative the latest available topology should be used.public void initializeFromDht(AffinityTopologyVersion topVer) throws GridCacheEntryRemovedException
topVer - Topology version.GridCacheEntryRemovedException - If this entry is obsolete.public boolean resetFromPrimary(CacheObject val, GridCacheVersion ver, GridCacheVersion dhtVer, UUID primaryNodeId, AffinityTopologyVersion topVer) throws GridCacheEntryRemovedException
val - Value.ver - Version.dhtVer - DHT version.primaryNodeId - Primary node ID.topVer - Topology version.True if reset was done.GridCacheEntryRemovedException - If obsolete.public void updateOrEvict(GridCacheVersion dhtVer, @Nullable @Nullable CacheObject val, long expireTime, long ttl, UUID primaryNodeId, AffinityTopologyVersion topVer)
dhtVer - DHT version.val - Value associated with version.expireTime - Expire time.ttl - Time to live.primaryNodeId - Primary node ID.topVer - Topology version.@Nullable public @Nullable GridCacheVersion dhtVersion() throws GridCacheEntryRemovedException
GridCacheEntryRemovedException - If obsolete.@Nullable public @Nullable IgniteBiTuple<GridCacheVersion,CacheObject> versionedValue() throws GridCacheEntryRemovedException
GridCacheEntryRemovedException - If entry has been removed.protected void recordNodeId(UUID primaryNodeId, AffinityTopologyVersion topVer)
recordNodeId in class GridCacheMapEntryprimaryNodeId - Node ID.public final boolean recordDhtVersion(GridCacheVersion dhtVer)
dhtVer - DHT version to record.False if given version is lower then existing version.protected Object readThrough(IgniteInternalTx tx, KeyCacheObject key, boolean reload, UUID subjId, String taskName) throws IgniteCheckedException
readThrough in class GridCacheMapEntrytx - Transaction.key - Key.reload - flag.subjId - Subject ID.taskName - Task name.IgniteCheckedException - If failed.public boolean loadedValue(@Nullable
@Nullable IgniteInternalTx tx,
UUID primaryNodeId,
CacheObject val,
GridCacheVersion ver,
GridCacheVersion dhtVer,
long ttl,
long expireTime,
boolean evt,
boolean keepBinary,
AffinityTopologyVersion topVer,
UUID subjId)
throws IgniteCheckedException,
GridCacheEntryRemovedException
tx - Transaction.primaryNodeId - Primary node ID.val - New value.ver - Version to use.dhtVer - DHT version received from remote node.ttl - Time to live.expireTime - Expiration time.evt - Event flag.topVer - Topology version.subjId - Subject ID.True if initial value was set.IgniteCheckedException - In case of error.GridCacheEntryRemovedException - If entry was removed.protected boolean storeValue(CacheObject val, long expireTime, GridCacheVersion ver)
storeValue in class GridCacheMapEntryval - Value.expireTime - Expire time.ver - New entry version.protected void removeValue()
removeValue in class GridCacheMapEntryprotected void logUpdate(GridCacheOperation op, CacheObject val, GridCacheVersion ver, long expireTime, long updCntr) throws IgniteCheckedException
logUpdate in class GridCacheMapEntryop - Update operation.val - Write value.ver - Write version.expireTime - Expire time.updCntr - Update counter.IgniteCheckedExceptionprotected WALPointer logTxUpdate(IgniteInternalTx tx, CacheObject val, long expireTime, long updCntr) throws IgniteCheckedException
logTxUpdate in class GridCacheMapEntrytx - Transaction.val - Value.expireTime - Expire time (or 0 if not applicable).updCntr - Update counter.IgniteCheckedException - In case of log failure.@Nullable public @Nullable CacheDataRow unswap(CacheDataRow row, boolean checkExpire)
unswap in class GridCacheMapEntryrow - Already extracted cache data.checkExpire - If true checks for expiration, as result entry can be obsoleted or marked deleted.public GridCacheMvccCandidate addLocal(long threadId, GridCacheVersion ver, AffinityTopologyVersion topVer, long timeout, boolean reenter, boolean tx, boolean implicitSingle, boolean read) throws GridCacheEntryRemovedException
addLocal in class GridDistributedCacheEntrythreadId - Owning thread ID.ver - Lock version.topVer - Topology version.timeout - Timeout to acquire lock.reenter - Reentry flag.tx - Transaction flag.implicitSingle - Implicit flag.read - Read lock flag.GridCacheEntryRemovedException - If entry has been removed.@Nullable public @Nullable GridCacheMvccCandidate dhtNodeId(GridCacheVersion ver, UUID dhtNodeId) throws GridCacheEntryRemovedException
ver - Version to set DHT node ID for.dhtNodeId - DHT node ID.true if candidate was found.GridCacheEntryRemovedException - If entry is removed.@Nullable public @Nullable GridCacheMvccCandidate removeLock()
removeLock in class GridDistributedCacheEntryprotected void onInvalidate()
onInvalidate in class GridCacheMapEntryprotected boolean evictionDisabled()
evictionDisabled in class GridCacheMapEntryTrue if this entry should not be evicted from cache.public void onMarkedObsolete()
GridCacheEntryEx.markObsolete(GridCacheVersion).onMarkedObsolete in interface GridCacheEntryExonMarkedObsolete in class GridCacheMapEntrypublic String toString()
toString in class GridDistributedCacheEntry
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021