public class GridDhtDetachedCacheEntry extends GridDistributedCacheEntry
| Constructor and Description |
|---|
GridDhtDetachedCacheEntry(GridCacheContext ctx,
KeyCacheObject key,
int hash,
CacheObject val,
GridCacheMapEntry next,
long ttl,
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 ignoreFlags,
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, txUnlockaddMeta, candidate, candidate, checkObsolete, clear, clearReader, clearReaders, context, deleted, deletedUnlocked, deletedUnlocked, equals, evictInBatchInternal, evictInternal, expireTime, expireTimeExtras, expireTimeUnlocked, hashCode, hasLockCandidate, hasLockCandidate, hasLockCandidateUnsafe, hasMeta, 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, meta, mvccExtras, mvccExtras, obsolete, obsolete, obsoleteOrDeleted, obsoleteVersion, obsoleteVersionExtras, obsoleteVersionExtras, onInvalidate, onMarkedObsolete, onTtlExpired, partition, partitionValid, peek, peek, peek, peek0, peekVisibleValue, poke, putMetaIfAbsent, rawExpireTime, rawGet, rawGetOrUnmarshal, rawGetOrUnmarshalUnlocked, rawPut, rawTtl, readExternalMeta, readThrough, recordNodeId, releaseSwap, removeMeta, removeMeta, replaceMeta, saveValueForIndexUnlocked, startVersion, ttl, ttlAndExpireTimeExtras, ttlExtras, txKey, unswap, update, updateTtl, valid, valueBytes, valueBytes, valueBytes0, version, versionedEntry, versionedValue, visitable, wrap, wrapEviction, wrapLazyValue, wrapVersioned, writeExternalMetapublic GridDhtDetachedCacheEntry(GridCacheContext ctx, KeyCacheObject key, int hash, CacheObject val, GridCacheMapEntry next, long ttl, int hdrId)
ctx - Cache context.key - Cache key.hash - Key hash value.val - Entry value.next - Next entry in the linked list.ttl - Time to live.hdrId - Header ID.public void resetFromPrimary(CacheObject val, GridCacheVersion ver) throws IgniteCheckedException
val - Value.ver - Version.IgniteCheckedException - If value unmarshalling failed.@Nullable public CacheObject unswap(boolean ignoreFlags, boolean needVal) throws IgniteCheckedException
unswap in interface GridCacheEntryExunswap in class GridCacheMapEntryignoreFlags - Whether to ignore swap flags.needVal - 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.0.0-RC3 Release Date : March 24 2015