public class GridDhtDetachedCacheEntry extends GridDistributedCacheEntry
GridMetadataAwareAdapter.EntryKeyATOMIC_VER_COMPARATOR, cctx, DFLT_LOCK_TIMEOUT_ENV, ENTRY_LOCK_TIMEOUT_ENV, flags, key, log, logRef, val, ver| Constructor and Description |
|---|
GridDhtDetachedCacheEntry(GridCacheContext ctx,
KeyCacheObject key) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addRemoved(GridCacheVersion ver) |
boolean |
detached() |
protected WALPointer |
logTxUpdate(IgniteInternalTx tx,
CacheObject val,
GridCacheVersion writeVer,
long expireTime,
long updCntr) |
protected void |
logUpdate(GridCacheOperation op,
CacheObject val,
GridCacheVersion writeVer,
long expireTime,
long updCntr,
boolean primary) |
int |
partition() |
protected void |
removeValue()
Removes value from offheap.
|
void |
resetFromPrimary(CacheObject val,
GridCacheVersion ver)
Sets value to detached entry so it can be retrieved in transactional gets.
|
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.
|
protected void |
value(@Nullable CacheObject val)
Sets entry value.
|
addLocal, addRemote, checkCallbacks, checkRemoved, checkThreadChain, doneRemote, readyLock, readyNearLock, recheck, remoteMvccSnapshot, removeExplicitNodeLocks, removeLock, removeLock, tmLockallVersionsInfo, candidate, candidate, checkObsolete, checkOwnerChanged, checkOwnerChanged, checkSerializableReadVersion, clear, clearReader, clearReaders, clearReserveForLoad, context, decrementMapPublicSize, deleted, deletedUnlocked, deletedUnlocked, equals, evictInternal, evictionDisabled, expireTime, expireTimeExtras, expireTimeUnlocked, hashCode, hasLockCandidate, hasLockCandidate, hasLockCandidateUnsafe, hasReaders, hasValue, hasValueUnlocked, incrementMapPublicSize, info, initialValue, innerGet, innerGetAndReserveForLoad, innerGetVersioned, innerReload, innerRemove, innerSet, innerUpdate, invalidate, isDht, isInternal, isLocal, isMvcc, isNear, 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, memorySize, mvccAllLocal, mvccExtras, mvccExtras, mvccLock, mvccPeek, mvccPreloadEntry, mvccRemove, mvccSet, mvccUpdateRowsWithPreloadInfo, nextPartitionCounter, nextPartitionCounter, obsolete, obsolete, obsoleteOrDeleted, obsoleteVersion, obsoleteVersionExtras, onInvalidate, onMarkedObsolete, onTtlExpired, onUnlock, onUpdateFinished, partitionValid, peek, peek, peekVisibleValue, rawExpireTime, rawGet, rawPut, rawTtl, readThrough, recordNodeId, storeValue, toStringWithTryLock, touch, tryLockEntry, ttl, ttlAndExpireTimeExtras, ttlExtras, txKey, txUnlock, unlockEntry, unswap, unswap, unswap, update, updateIndex, updatePlatformCache, updateTtl, updateTtl, valid, 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 GridDhtDetachedCacheEntry(GridCacheContext ctx, KeyCacheObject key)
ctx - Cache context.key - Cache key.public void resetFromPrimary(CacheObject val, GridCacheVersion ver)
val - Value.ver - Version.@Nullable public @Nullable CacheDataRow unswap(CacheDataRow row, boolean checkExpire) throws IgniteCheckedException
unswap in class GridCacheMapEntryrow - Already extracted cache data.checkExpire - If true checks for expiration, as result entry can be obsoleted or marked deleted.IgniteCheckedException - If failed.protected void value(@Nullable
@Nullable CacheObject val)
value in class GridCacheMapEntryval - Value to store.protected boolean storeValue(CacheObject val, long expireTime, GridCacheVersion ver) throws IgniteCheckedException
storeValue in class GridCacheMapEntryval - Value.expireTime - Expire time.ver - New entry version.IgniteCheckedException - If update failed.protected void logUpdate(GridCacheOperation op, CacheObject val, GridCacheVersion writeVer, long expireTime, long updCntr, boolean primary) throws IgniteCheckedException
logUpdate in class GridCacheMapEntryop - Update operation.val - Write value.writeVer - Write version.expireTime - Expire time.updCntr - Update counter.primary - True if node is primary for entry in the moment of logging.IgniteCheckedExceptionprotected WALPointer logTxUpdate(IgniteInternalTx tx, CacheObject val, GridCacheVersion writeVer, long expireTime, long updCntr)
logTxUpdate in class GridCacheMapEntrytx - Transaction.val - Value.writeVer - New entry version.expireTime - Expire time (or 0 if not applicable).updCntr - Update counter.protected void removeValue()
throws IgniteCheckedException
removeValue in class GridCacheMapEntryIgniteCheckedException - If failed.public boolean detached()
detached in interface GridCacheEntryExdetached in class GridCacheMapEntryFalse if entry belongs to cache map, true if this entry was created in colocated
cache and node is not primary for this key.public String toString()
toString in class GridDistributedCacheEntrypublic boolean addRemoved(GridCacheVersion ver)
addRemoved in class GridDistributedCacheEntryver - Lock version.True if removed.public int partition()
partition in interface GridCacheEntryExpartition in class GridCacheMapEntry
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023