public class GridLocalCacheEntry extends GridCacheMapEntry
| Constructor and Description |
|---|
GridLocalCacheEntry(GridCacheContext ctx,
KeyCacheObject key,
int hash,
CacheObject val,
GridCacheMapEntry next,
long ttl,
int hdrId) |
| Modifier and Type | Method and Description |
|---|---|
GridCacheMvccCandidate |
addLocal(long threadId,
GridCacheVersion ver,
long timeout,
boolean reenter,
boolean tx,
boolean implicitSingle)
Add local candidate.
|
boolean |
isLocal() |
GridCacheMvccCandidate |
readyLocal(GridCacheMvccCandidate cand) |
GridCacheMvccCandidate |
readyLocal(GridCacheVersion ver) |
GridCacheMvccCandidate |
recheck()
Rechecks if lock should be reassigned.
|
boolean |
removeLock(GridCacheVersion ver) |
boolean |
tmLock(IgniteInternalTx tx,
long timeout)
This locks is called by transaction manager during prepare step
for optimistic transactions.
|
void |
txUnlock(IgniteInternalTx tx)
Unlocks lock if it is currently owned.
|
addMeta, candidate, candidate, checkObsolete, clear, clearIndex, clearReader, clearReaders, context, deleted, deletedUnlocked, deletedUnlocked, detached, 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, 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, remoteMvccSnapshot, removeMeta, removeMeta, replaceMeta, saveValueForIndexUnlocked, startVersion, toString, ttl, ttlAndExpireTimeExtras, ttlExtras, txKey, unswap, unswap, update, updateIndex, updateTtl, valid, value, valueBytes, valueBytes, valueBytes0, valueBytesUnlocked, version, versionedEntry, versionedValue, visitable, wrap, wrapEviction, wrapLazyValue, wrapVersioned, writeExternalMetapublic GridLocalCacheEntry(GridCacheContext ctx, KeyCacheObject key, int hash, CacheObject val, GridCacheMapEntry 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 GridCacheEntryExisLocal in class GridCacheMapEntryTrue if local.@Nullable public GridCacheMvccCandidate 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 readyLocal(GridCacheMvccCandidate cand)
cand - Candidate.@Nullable public GridCacheMvccCandidate readyLocal(GridCacheVersion ver)
ver - Candidate version.public boolean tmLock(IgniteInternalTx 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 recheck()
public void txUnlock(IgniteInternalTx 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-RC3 Release Date : March 24 2015