public class GridDhtDetachedCacheEntry extends GridDistributedCacheEntry
GridMetadataAwareAdapter.EntryKeyATOMIC_VER_COMPARATOR, cctx, flags, key, log, logRef, startVer, val, ver| Constructor and Description |
|---|
GridDhtDetachedCacheEntry(GridCacheContext ctx,
KeyCacheObject key,
int hash,
CacheObject val,
GridCacheMapEntry next,
int hdrId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addRemoved(GridCacheVersion ver) |
protected void |
clearIndex(CacheObject val)
Clears index.
|
boolean |
detached() |
int |
partition() |
void |
resetFromPrimary(CacheObject val,
GridCacheVersion ver)
Sets value to detached entry so it can be retrieved in transactional gets.
|
String |
toString() |
CacheObject |
unswap(boolean needVal,
boolean checkExpire)
Unswaps an entry.
|
protected void |
updateIndex(CacheObject val,
long expireTime,
GridCacheVersion ver,
CacheObject old)
Updates cache index.
|
protected void |
value(CacheObject val)
Sets entry value.
|
protected CacheObject |
valueBytesUnlocked() |
addLocal, addRemote, checkCallbacks, checkRemoved, checkThreadChain, doneRemote, readyLock, readyNearLock, recheck, remoteMvccSnapshot, removeExplicitNodeLocks, removeLock, removeLock, tmLock, txUnlockcandidate, candidate, checkObsolete, checkOwnerChanged, checkSerializableReadVersion, clear, clearReader, clearReaders, clearReserveForLoad, context, decrementMapPublicSize, deleted, deletedUnlocked, deletedUnlocked, equals, evictInBatchInternal, evictInternal, evictionDisabled, expireTime, expireTimeExtras, expireTimeUnlocked, hashCode, hasLockCandidate, hasLockCandidate, hasLockCandidateUnsafe, hasOffHeapPointer, hasReaders, hasValue, hasValueUnlocked, incrementMapPublicSize, info, initialValue, initialValue, innerGet, innerGetAndReserveForLoad, innerGetVersioned, innerReload, innerRemove, innerSet, innerUpdate, innerUpdateLocal, invalidate, invalidate, isDht, isInternal, isLocal, isNear, isNew, isNewLocked, isOffHeapValuesOnly, isReplicated, isStartVersion, key, keyValue, localCandidate, localCandidates, localOwner, lockedBy, lockedByAny, lockedByThread, lockedByThread, lockedByThread, lockedByThreadUnsafe, lockedByUnsafe, lockedLocally, lockedLocallyByIdOrThread, lockedLocallyUnsafe, markObsolete, markObsolete0, markObsoleteIfEmpty, markObsoleteVersion, memorySize, mvccAllLocal, mvccExtras, mvccExtras, obsolete, obsolete, obsoleteOrDeleted, obsoleteVersion, obsoleteVersionExtras, offHeapPointer, offHeapPointer, onInvalidate, onMarkedObsolete, onOffheapEvict, onTtlExpired, onUnlock, partitionValid, peek, peek, peekVisibleValue, rawExpireTime, rawGet, rawGetOrUnmarshal, rawGetOrUnmarshalUnlocked, rawPut, rawTtl, readThrough, recordNodeId, releaseSwap, saveValueForIndexUnlocked, startVersion, ttl, ttlAndExpireTimeExtras, ttlExtras, txKey, unswap, unswap, update, updateTtl, updateTtl, valid, valueBytes, valueBytes, valueBytes0, version, versionedEntry, versionedValue, visitable, wrap, wrapEviction, wrapLazyValue, wrapVersionedaddMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, clone, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, readExternalMeta, removeAllMeta, removeMeta, removeMeta, replaceMeta, writeExternalMetafinalize, getClass, notify, notifyAll, wait, wait, waitaddMeta, hasMeta, meta, putMetaIfAbsent, removeMeta, removeMeta, replaceMetapublic GridDhtDetachedCacheEntry(GridCacheContext ctx, KeyCacheObject key, int hash, CacheObject val, GridCacheMapEntry next, int hdrId)
ctx - Cache context.key - Cache key.hash - Key hash value.val - Entry value.next - Next entry in the linked list.hdrId - Header ID.public void resetFromPrimary(CacheObject val, GridCacheVersion ver)
val - Value.ver - Version.@Nullable public CacheObject unswap(boolean needVal, boolean checkExpire) throws IgniteCheckedException
unswap in class GridCacheMapEntryneedVal - If false then do not to deserialize value during unswap.checkExpire - If true checks for expiration, as result entry can be obsoleted or marked deleted.IgniteCheckedException - If failed.protected void value(@Nullable
CacheObject val)
value in class GridCacheMapEntryval - Value to store.protected CacheObject valueBytesUnlocked()
valueBytesUnlocked in class GridCacheMapEntryprotected void updateIndex(CacheObject val, long expireTime, GridCacheVersion ver, CacheObject old) throws IgniteCheckedException
updateIndex in class GridCacheMapEntryval - Value.expireTime - Expire time.ver - New entry version.old - Previous value.IgniteCheckedException - If update failed.protected void clearIndex(CacheObject val) throws IgniteCheckedException
clearIndex in class GridCacheMapEntryval - Previous value (if needed for index update).IgniteCheckedException - 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 Fabric : ver. 1.9.0 Release Date : March 2 2017