public class GridLocalCacheEntry<K,V> extends GridCacheMapEntry<K,V>
| Constructor and Description |
|---|
GridLocalCacheEntry(GridCacheContext<K,V> ctx,
K key,
int hash,
V val,
GridCacheMapEntry<K,V> next,
long ttl,
int hdrId) |
| Modifier and Type | Method and Description |
|---|---|
GridCacheMvccCandidate<K> |
addLocal(long threadId,
GridCacheVersion ver,
long timeout,
boolean reenter,
boolean tx,
boolean implicitSingle)
Add local candidate.
|
boolean |
isLocal() |
GridCacheMvccCandidate<K> |
readyLocal(GridCacheMvccCandidate<K> cand) |
GridCacheMvccCandidate<K> |
readyLocal(GridCacheVersion ver) |
GridCacheMvccCandidate<K> |
recheck()
Rechecks if lock should be reassigned.
|
boolean |
removeLock(GridCacheVersion ver) |
boolean |
tmLock(IgniteInternalTx<K,V> tx,
long timeout)
This locks is called by transaction manager during prepare step
for optimistic transactions.
|
void |
txUnlock(IgniteInternalTx<K,V> tx)
Unlocks lock if it is currently owned.
|
addMeta, candidate, candidate, checkObsolete, clear, clearIndex, clearReader, clearReaders, compact, context, deleted, deletedUnlocked, deletedUnlocked, detached, 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, 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, remoteMvccSnapshot, removeMeta, removeMeta, replaceMeta, saveValueForIndexUnlocked, startVersion, toExpireTime, toString, ttl, ttlAndExpireTimeExtras, ttlExtras, txKey, unswap, unswap, update, updateIndex, updateTtl, valid, value, valueBytes, valueBytes, valueBytesUnlocked, version, versionedEntry, versionedValue, visitable, wrap, wrapEviction, wrapFilterLocked, wrapLazyValue, wrapVersioned, writeExternalMetapublic GridLocalCacheEntry(GridCacheContext<K,V> ctx, K key, int hash, V val, GridCacheMapEntry<K,V> next, long ttl, int hdrId)
ctx - Cache registry.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 boolean isLocal()
isLocal in interface GridCacheEntryEx<K,V>isLocal in class GridCacheMapEntry<K,V>True if local.@Nullable public GridCacheMvccCandidate<K> addLocal(long threadId, GridCacheVersion ver, long timeout, boolean reenter, boolean tx, boolean implicitSingle) throws GridCacheEntryRemovedException
threadId - Owning thread ID.ver - Lock version.timeout - Timeout to acquire lock.reenter - Reentry flag.tx - Transaction flag.implicitSingle - Implicit transaction flag.GridCacheEntryRemovedException - If entry has been removed.@Nullable public GridCacheMvccCandidate<K> readyLocal(GridCacheMvccCandidate<K> cand)
cand - Candidate.@Nullable public GridCacheMvccCandidate<K> readyLocal(GridCacheVersion ver)
ver - Candidate version.public boolean tmLock(IgniteInternalTx<K,V> tx, long timeout) throws GridCacheEntryRemovedException
tx - Cache transaction.timeout - Timeout for lock acquisition.True if lock was acquired, false otherwise.GridCacheEntryRemovedException - If this entry is obsolete.@Nullable public GridCacheMvccCandidate<K> recheck()
public void txUnlock(IgniteInternalTx<K,V> tx) throws GridCacheEntryRemovedException
tx - Transaction to unlock.GridCacheEntryRemovedException - If this entry has been removed from cache.public boolean removeLock(GridCacheVersion ver) throws GridCacheEntryRemovedException
ver - Removes lock.True If lock has been removed.GridCacheEntryRemovedException - If this entry has been removed from cache.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015