public class GridDhtDetachedCacheEntry<K,V> extends GridDistributedCacheEntry<K,V>
| Constructor and Description |
|---|
GridDhtDetachedCacheEntry(GridCacheContext<K,V> ctx,
K key,
int hash,
V val,
GridCacheMapEntry<K,V> next,
long ttl,
int hdrId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addRemoved(GridCacheVersion ver) |
protected void |
clearIndex(V val)
Clears index.
|
boolean |
detached() |
void |
resetFromPrimary(V val,
byte[] valBytes,
GridCacheVersion ver)
Sets value to detached entry so it can be retrieved in transactional gets.
|
String |
toString() |
V |
unswap(boolean ignoreFlags,
boolean needVal)
Unswaps an entry.
|
protected void |
updateIndex(V val,
byte[] valBytes,
long expireTime,
GridCacheVersion ver,
V old)
Updates cache index.
|
protected void |
value(V val,
byte[] valBytes)
Sets entry value.
|
protected GridCacheValueBytes |
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, compact, context, deleted, deletedUnlocked, deletedUnlocked, equals, evictInBatchInternal, evictInternal, expireTime, expireTimeExtras, expireTimeUnlocked, getOrMarshalKeyBytes, 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, isStoreValueBytes, key, keyBytes, keyBytes, 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, peekFailFast, poke, putMetaIfAbsent, putMetaIfAbsent, rawExpireTime, rawGet, rawGetOrUnmarshal, rawGetOrUnmarshalUnlocked, rawPut, rawTtl, readExternalMeta, readThrough, recordNodeId, releaseSwap, removeMeta, removeMeta, replaceMeta, saveValueForIndexUnlocked, startVersion, toExpireTime, ttl, ttlAndExpireTimeExtras, ttlExtras, txKey, unswap, update, updateTtl, valid, valueBytes, valueBytes, version, versionedEntry, versionedValue, visitable, wrap, wrapEviction, wrapFilterLocked, wrapLazyValue, wrapVersioned, writeExternalMetapublic GridDhtDetachedCacheEntry(GridCacheContext<K,V> ctx, K key, int hash, V val, GridCacheMapEntry<K,V> 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(V val, byte[] valBytes, GridCacheVersion ver) throws IgniteCheckedException
val - Value.valBytes - Value bytes.ver - Version.IgniteCheckedException - If value unmarshalling failed.@Nullable public V unswap(boolean ignoreFlags, boolean needVal) throws IgniteCheckedException
unswap in interface GridCacheEntryEx<K,V>unswap in class GridCacheMapEntry<K,V>ignoreFlags - Whether to ignore swap flags.needVal - If false then do not to deserialize value during unswap.IgniteCheckedException - If failed.protected void value(@Nullable V val, @Nullable byte[] valBytes)
value in class GridCacheMapEntry<K,V>val - Value to store.valBytes - Value bytes to store.protected GridCacheValueBytes valueBytesUnlocked()
valueBytesUnlocked in class GridCacheMapEntry<K,V>protected void updateIndex(V val, byte[] valBytes, long expireTime, GridCacheVersion ver, V old) throws IgniteCheckedException
updateIndex in class GridCacheMapEntry<K,V>val - Value.valBytes - Value bytes.expireTime - Expire time.ver - New entry version.old - Previous value.IgniteCheckedException - If update failed.protected void clearIndex(V val) throws IgniteCheckedException
clearIndex in class GridCacheMapEntry<K,V>val - Previous value (if needed for index update).IgniteCheckedException - If failed.public boolean detached()
detached in interface GridCacheEntryEx<K,V>detached in class GridCacheMapEntry<K,V>False 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 GridDistributedCacheEntry<K,V>public boolean addRemoved(GridCacheVersion ver)
addRemoved in class GridDistributedCacheEntry<K,V>ver - Lock version.True if removed.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015