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() |
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, addRemoteCandidates, checkCallbacks, checkOwnerChanged, checkRemoved, checkThreadChain, doneRemote, doneRemote, orderCompleted, readyLock, readyLock, readyNearLock, recheck, refreshRemotes, remoteMvccSnapshot, removeExplicitNodeLocks, removeLock, removeLock, tmLock, txUnlockaddMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, candidate, candidate, checkObsolete, clear, clearReaders, compact, context, copyMeta, copyMeta, createValueBytes, deleted, deletedUnlocked, deletedUnlocked, drEntry, equals, evictInBatchInternal, evictInternal, evictWrap, expireTime, expireTimeExtras, expireTimeUnlocked, getOrMarshalKeyBytes, hashCode, hasLockCandidate, hasLockCandidate, hasLockCandidateUnsafe, hasMeta, 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, peek0, peekFailFast, poke, putMetaIfAbsent, putMetaIfAbsent, rawExpireTime, rawGet, rawGetOrUnmarshal, rawGetOrUnmarshalUnlocked, rawPut, rawTtl, readExternalMeta, readThrough, recordNodeId, refreshAhead, refreshingLocked, refreshingUnlocked, releaseSwap, removeMeta, removeMeta, replaceMeta, saveValueForIndexUnlocked, startVersion, toExpireTime, ttl, ttlAndExpireTimeExtras, ttlExtras, unswap, unswap, update, valid, valueBytes, valueBytes, version, versionedValue, visitable, wrap, wrapFilterLocked, 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 GridException
val - Value.valBytes - Value bytes.ver - Version.GridException - If value unmarshalling 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 GridException
updateIndex in class GridCacheMapEntry<K,V>val - Value.valBytes - Value bytes.expireTime - Expire time.ver - New entry version.old - Previous value.GridException - If update failed.protected void clearIndex(V val) throws GridException
clearIndex in class GridCacheMapEntry<K,V>val - Previous value (if needed for index update).GridException - 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.Copyright © 2014. All rights reserved.