public class GridLocalCacheEntry extends GridCacheMapEntry
GridMetadataAwareAdapter.EntryKeyATOMIC_VER_COMPARATOR, cctx, flags, key, log, logRef, startVer, val, ver| Constructor and Description |
|---|
GridLocalCacheEntry(GridCacheContext ctx,
KeyCacheObject key,
int hash,
CacheObject val) |
| Modifier and Type | Method and Description |
|---|---|
GridCacheMvccCandidate |
addLocal(long threadId,
GridCacheVersion ver,
GridCacheVersion serOrder,
GridCacheVersion serReadVer,
long timeout,
boolean reenter,
boolean tx,
boolean implicitSingle,
boolean keepBinary)
Add local candidate.
|
protected boolean |
hasOffHeapPointer() |
boolean |
isLocal() |
protected long |
offHeapPointer() |
protected void |
offHeapPointer(long valPtr) |
GridCacheMvccCandidate |
readyLocal(GridCacheMvccCandidate cand) |
GridCacheMvccCandidate |
recheck()
Rechecks if lock should be reassigned.
|
boolean |
removeLock(GridCacheVersion ver) |
boolean |
tmLock(IgniteInternalTx tx,
long timeout,
GridCacheVersion serOrder,
GridCacheVersion serReadVer,
boolean keepBinary)
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, checkSerializableReadVersion, clear, clearIndex, clearReader, clearReaders, 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, 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, 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, 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 GridLocalCacheEntry(GridCacheContext ctx, KeyCacheObject key, int hash, CacheObject val)
ctx - Cache registry.key - Cache key.hash - Key hash value.val - Entry value.public boolean isLocal()
isLocal in interface GridCacheEntryExisLocal in class GridCacheMapEntryTrue if local.@Nullable public GridCacheMvccCandidate addLocal(long threadId, GridCacheVersion ver, @Nullable GridCacheVersion serOrder, @Nullable GridCacheVersion serReadVer, long timeout, boolean reenter, boolean tx, boolean implicitSingle, boolean keepBinary) throws GridCacheEntryRemovedException
threadId - Owning thread ID.ver - Lock version.serOrder - Version for serializable transactions ordering.serReadVer - Optional read entry version for optimistic serializable transaction.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.public boolean tmLock(IgniteInternalTx tx, long timeout, @Nullable GridCacheVersion serOrder, GridCacheVersion serReadVer, boolean keepBinary) 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.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.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.6.0 Release Date : May 18 2016