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() |
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)
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, addRemote, checkCallbacks, checkOwnerChanged, checkRemoved, checkThreadChain, doneRemote, doneRemote, orderCompleted, readyLock, readyNearLock, recheck, refreshRemotes, remoteMvccSnapshot, removeExplicitNodeLocks, removeLock, removeLock, tmLock, txUnlockcandidate, candidate, checkObsolete, clear, clearReader, clearReaders, context, deleted, deletedUnlocked, deletedUnlocked, equals, evictInBatchInternal, evictInternal, expireTime, expireTimeExtras, expireTimeUnlocked, hashCode, hasLockCandidate, hasLockCandidate, hasLockCandidateUnsafe, hasOffHeapPointer, hasReaders, hasValue, hasValueUnlocked, info, initialValue, initialValue, innerGet, 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, mvccExtras, mvccExtras, obsolete, obsolete, obsoleteOrDeleted, obsoleteVersion, obsoleteVersionExtras, obsoleteVersionExtras, offHeapPointer, offHeapPointer, offheapSwapEvict, onInvalidate, onMarkedObsolete, onTtlExpired, onUnlock, partition, partitionValid, peek, peek, peekVisibleValue, rawExpireTime, rawGet, rawGetOrUnmarshal, rawGetOrUnmarshalUnlocked, rawPut, rawTtl, readThrough, recordNodeId, releaseSwap, saveValueForIndexUnlocked, startVersion, ttl, ttlAndExpireTimeExtras, ttlExtras, txKey, unswap, update, 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) throws IgniteCheckedException
unswap in interface GridCacheEntryExunswap in class GridCacheMapEntryneedVal - If false then do not to deserialize value during unswap.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.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015