public class GridLocalCacheEntry extends GridCacheMapEntry
GridMetadataAwareAdapter.EntryKeyATOMIC_VER_COMPARATOR, cctx, flags, key, log, logRef, startVer, val, ver| Modifier and Type | Method and Description |
|---|---|
protected void |
checkThreadChain(GridCacheMvccCandidate owner) |
protected boolean |
hasOffHeapPointer() |
boolean |
isLocal() |
protected long |
offHeapPointer() |
protected void |
offHeapPointer(long valPtr) |
void |
recheck()
Rechecks if lock should be reassigned.
|
boolean |
removeLock(GridCacheVersion ver) |
boolean |
tmLock(IgniteInternalTx tx,
long timeout,
GridCacheVersion serOrder,
GridCacheVersion serReadVer,
boolean read)
This locks is called by transaction manager during prepare step
for optimistic transactions.
|
String |
toString() |
void |
txUnlock(IgniteInternalTx tx)
Unlocks lock if it is currently owned.
|
candidate, candidate, checkObsolete, checkOwnerChanged, checkSerializableReadVersion, clear, clearIndex, clearReader, clearReaders, clearReserveForLoad, context, decrementMapPublicSize, deleted, deletedUnlocked, deletedUnlocked, detached, equals, evictInBatchInternal, evictInternal, evictionDisabled, expireTime, expireTimeExtras, expireTimeUnlocked, hashCode, hasLockCandidate, hasLockCandidate, hasLockCandidateUnsafe, hasReaders, hasValue, hasValueUnlocked, incrementMapPublicSize, info, initialValue, initialValue, innerGet, innerGetAndReserveForLoad, innerGetVersioned, 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, mvccAllLocal, mvccExtras, mvccExtras, obsolete, obsolete, obsoleteOrDeleted, obsoleteVersion, obsoleteVersionExtras, onInvalidate, onMarkedObsolete, onOffheapEvict, onTtlExpired, onUnlock, partition, partitionValid, peek, peek, peekVisibleValue, rawExpireTime, rawGet, rawGetOrUnmarshal, rawGetOrUnmarshalUnlocked, rawPut, rawTtl, readThrough, recordNodeId, releaseSwap, remoteMvccSnapshot, saveValueForIndexUnlocked, startVersion, ttl, ttlAndExpireTimeExtras, ttlExtras, txKey, unswap, unswap, unswap, update, updateIndex, updateTtl, updateTtl, valid, value, valueBytes, valueBytes, valueBytes0, valueBytesUnlocked, version, versionedEntry, versionedValue, visitable, wrap, wrapEviction, wrapLazyValue, wrapVersionedaddMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, clone, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, readExternalMeta, removeAllMeta, removeMeta, removeMeta, replaceMeta, writeExternalMetafinalize, getClass, notify, notifyAll, wait, wait, waitaddMeta, hasMeta, meta, putMetaIfAbsent, removeMeta, removeMeta, replaceMetapublic boolean isLocal()
isLocal in interface GridCacheEntryExisLocal in class GridCacheMapEntryTrue if local.public boolean tmLock(IgniteInternalTx tx, long timeout, @Nullable GridCacheVersion serOrder, GridCacheVersion serReadVer, boolean read) throws GridCacheEntryRemovedException
tx - Cache transaction.timeout - Timeout for lock acquisition.serOrder - Version for serializable transactions ordering.serReadVer - Optional read entry version for optimistic serializable transaction.read - Read lock flag.True if lock was acquired, false otherwise.GridCacheEntryRemovedException - If this entry is obsolete.public void recheck()
protected void checkThreadChain(GridCacheMvccCandidate owner)
checkThreadChain in class GridCacheMapEntryowner - Starting candidate in the chain.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.protected boolean hasOffHeapPointer()
hasOffHeapPointer in class GridCacheMapEntryprotected long offHeapPointer()
offHeapPointer in class GridCacheMapEntryprotected void offHeapPointer(long valPtr)
offHeapPointer in class GridCacheMapEntryvalPtr - Off-heap value pointer.public String toString()
toString in class GridCacheMapEntry
Follow @ApacheIgnite
Ignite Fabric : ver. 1.9.0 Release Date : March 2 2017