public interface GridCacheEntryEx
'Ex' stands for extended).| Modifier and Type | Method and Description |
|---|---|
<V> V |
addMeta(int key,
V val)
Adds a new metadata.
|
@Nullable List<GridCacheEntryInfo> |
allVersionsInfo() |
@Nullable GridCacheMvccCandidate |
candidate(GridCacheVersion ver)
Gets lock candidate for given lock ID.
|
@Nullable GridCacheMvccCandidate |
candidate(UUID nodeId,
long threadId) |
boolean |
checkSerializableReadVersion(GridCacheVersion serReadVer)
Checks if there was read/write conflict in serializable transaction.
|
boolean |
clear(GridCacheVersion ver,
boolean readers)
Marks entry as obsolete and, if possible or required, removes it
from swap storage.
|
void |
clearReserveForLoad(GridCacheVersion ver) |
<K,V> GridCacheContext<K,V> |
context() |
boolean |
deleted()
Note: this method works only for cache configured in ATOMIC mode or for cache that is
data center replication target.
|
boolean |
detached() |
boolean |
evictInternal(GridCacheVersion obsoleteVer,
@Nullable CacheEntryPredicate[] filter,
boolean evictOffheap) |
long |
expireTime() |
long |
expireTimeUnlocked() |
boolean |
hasLockCandidate(GridCacheVersion ver)
Checks if the candidate is either owner or pending.
|
boolean |
hasLockCandidate(long threadId)
Checks if the candidate is either owner or pending.
|
boolean |
hasLockCandidateUnsafe(GridCacheVersion ver) |
boolean |
hasMeta(int key)
Tests whether or not given metadata is set.
|
boolean |
hasValue() |
@Nullable GridCacheEntryInfo |
info() |
default boolean |
initialValue(CacheObject val,
GridCacheVersion ver,
long ttl,
long expireTime,
boolean preload,
AffinityTopologyVersion topVer,
GridDrType drType,
boolean fromStore)
Sets new value if current version is 0
|
default boolean |
initialValue(CacheObject val,
GridCacheVersion ver,
@Nullable MvccVersion mvccVer,
@Nullable MvccVersion newMvccVer,
byte mvccTxState,
byte newMvccTxState,
long ttl,
long expireTime,
boolean preload,
AffinityTopologyVersion topVer,
GridDrType drType,
boolean fromStore)
Sets new value if current version is 0
|
boolean |
initialValue(CacheObject val,
GridCacheVersion ver,
@Nullable MvccVersion mvccVer,
@Nullable MvccVersion newMvccVer,
byte mvccTxState,
byte newMvccTxState,
long ttl,
long expireTime,
boolean preload,
AffinityTopologyVersion topVer,
GridDrType drType,
boolean fromStore,
@Nullable CacheDataRow row)
Sets new value if current version is 0
|
CacheObject |
innerGet(@Nullable GridCacheVersion ver,
@Nullable IgniteInternalTx tx,
boolean readThrough,
boolean updateMetrics,
boolean evt,
UUID subjId,
Object transformClo,
String taskName,
@Nullable IgniteCacheExpiryPolicy expiryPlc,
boolean keepBinary) |
EntryGetResult |
innerGetAndReserveForLoad(boolean updateMetrics,
boolean evt,
UUID subjId,
String taskName,
@Nullable IgniteCacheExpiryPolicy expiryPlc,
boolean keepBinary,
@Nullable ReaderArguments readerArgs) |
EntryGetResult |
innerGetVersioned(@Nullable GridCacheVersion ver,
IgniteInternalTx tx,
boolean updateMetrics,
boolean evt,
UUID subjId,
Object transformClo,
String taskName,
@Nullable IgniteCacheExpiryPolicy expiryPlc,
boolean keepBinary,
@Nullable ReaderArguments readerArgs) |
@Nullable CacheObject |
innerReload()
Reloads entry from underlying storage.
|
GridCacheUpdateTxResult |
innerRemove(@Nullable IgniteInternalTx tx,
UUID evtNodeId,
UUID affNodeId,
boolean retval,
boolean evt,
boolean metrics,
boolean keepBinary,
boolean oldValPresent,
@Nullable CacheObject oldVal,
AffinityTopologyVersion topVer,
CacheEntryPredicate[] filter,
GridDrType drType,
@Nullable GridCacheVersion explicitVer,
@Nullable UUID subjId,
String taskName,
@Nullable GridCacheVersion dhtVer,
@Nullable Long updateCntr) |
GridCacheUpdateTxResult |
innerSet(@Nullable IgniteInternalTx tx,
UUID evtNodeId,
UUID affNodeId,
@Nullable CacheObject val,
boolean writeThrough,
boolean retval,
long ttl,
boolean evt,
boolean metrics,
boolean keepBinary,
boolean oldValPresent,
@Nullable CacheObject oldVal,
AffinityTopologyVersion topVer,
CacheEntryPredicate[] filter,
GridDrType drType,
long drExpireTime,
@Nullable GridCacheVersion explicitVer,
@Nullable UUID subjId,
String taskName,
@Nullable GridCacheVersion dhtVer,
@Nullable Long updateCntr) |
GridCacheUpdateAtomicResult |
innerUpdate(GridCacheVersion ver,
UUID evtNodeId,
UUID affNodeId,
GridCacheOperation op,
@Nullable Object val,
@Nullable Object[] invokeArgs,
boolean writeThrough,
boolean readThrough,
boolean retval,
boolean keepBinary,
@Nullable IgniteCacheExpiryPolicy expiryPlc,
boolean evt,
boolean metrics,
boolean primary,
boolean checkVer,
AffinityTopologyVersion topVer,
@Nullable CacheEntryPredicate[] filter,
GridDrType drType,
long conflictTtl,
long conflictExpireTime,
@Nullable GridCacheVersion conflictVer,
boolean conflictResolve,
boolean intercept,
@Nullable UUID subjId,
String taskName,
@Nullable CacheObject prevVal,
@Nullable Long updateCntr,
@Nullable GridDhtAtomicAbstractUpdateFuture fut,
boolean transformOp) |
GridTuple3<Boolean,Object,javax.cache.processor.EntryProcessorResult<Object>> |
innerUpdateLocal(GridCacheVersion ver,
GridCacheOperation op,
@Nullable Object writeObj,
@Nullable Object[] invokeArgs,
boolean writeThrough,
boolean readThrough,
boolean retval,
boolean keepBinary,
@Nullable javax.cache.expiry.ExpiryPolicy expiryPlc,
boolean evt,
boolean metrics,
@Nullable CacheEntryPredicate[] filter,
boolean intercept,
@Nullable UUID subjId,
String taskName,
boolean transformOp)
Update method for local cache in atomic mode.
|
boolean |
invalidate(GridCacheVersion newVer)
Invalidates this entry.
|
boolean |
isDht() |
boolean |
isInternal() |
boolean |
isLocal() |
boolean |
isMvcc() |
boolean |
isNear() |
boolean |
isNew()
Checks if entry is new assuming lock is held externally.
|
boolean |
isNewLocked()
Checks if entry is new while holding lock.
|
boolean |
isReplicated() |
KeyCacheObject |
key() |
@Nullable GridCacheMvccCandidate |
localCandidate(long threadId) |
Collection<GridCacheMvccCandidate> |
localCandidates(GridCacheVersion... exclude)
Gets all local candidates.
|
@Nullable GridCacheMvccCandidate |
localOwner() |
boolean |
lockedBy(GridCacheVersion ver) |
boolean |
lockedByAny(GridCacheVersion... exclude) |
boolean |
lockedByCurrentThread()
Tests whether the entry is locked currently.
|
boolean |
lockedByThread() |
boolean |
lockedByThread(long threadId) |
boolean |
lockedByThread(long threadId,
GridCacheVersion exclude) |
boolean |
lockedByThreadUnsafe(long threadId)
Will not fail for removed entries.
|
boolean |
lockedByUnsafe(GridCacheVersion ver) |
boolean |
lockedLocally(GridCacheVersion lockVer) |
boolean |
lockedLocallyByIdOrThread(GridCacheVersion lockVer,
long threadId) |
boolean |
lockedLocallyUnsafe(GridCacheVersion lockVer) |
void |
lockEntry()
Locks entry to protect from concurrent access.
|
boolean |
markObsolete(GridCacheVersion ver)
Sets obsolete flag if possible.
|
boolean |
markObsoleteIfEmpty(@Nullable GridCacheVersion ver)
Sets obsolete flag if entry value is
null or entry is expired and no
locks are held. |
boolean |
markObsoleteVersion(GridCacheVersion ver)
Sets obsolete flag if entry version equals to
ver. |
int |
memorySize() |
<V> V |
meta(int key)
Gets metadata by key.
|
GridCacheUpdateTxResult |
mvccLock(GridDhtTxLocalAdapter tx,
MvccSnapshot mvccVer) |
@Nullable CacheObject |
mvccPeek(boolean onheapOnly)
Retrieves the last committed MVCC entry version.
|
boolean |
mvccPreloadEntry(List<GridCacheMvccEntryInfo> entries)
Apply entry history if not exists.
|
GridCacheUpdateTxResult |
mvccRemove(@Nullable IgniteInternalTx tx,
UUID affNodeId,
AffinityTopologyVersion topVer,
MvccSnapshot mvccVer,
boolean needHist,
boolean needOldValue,
@Nullable CacheEntryPredicate filter,
boolean retVal) |
GridCacheUpdateTxResult |
mvccSet(@Nullable IgniteInternalTx tx,
UUID affNodeId,
CacheObject val,
javax.cache.processor.EntryProcessor entryProc,
Object[] invokeArgs,
long ttl0,
AffinityTopologyVersion topVer,
MvccSnapshot mvccVer,
GridCacheOperation op,
boolean needHistory,
boolean noCreate,
boolean needOldVal,
@Nullable CacheEntryPredicate filter,
boolean retVal,
boolean keepBinary) |
GridCacheUpdateTxResult |
mvccUpdateRowsWithPreloadInfo(IgniteInternalTx tx,
UUID affNodeId,
AffinityTopologyVersion topVer,
List<GridCacheEntryInfo> entries,
GridCacheOperation op,
MvccSnapshot mvccVer,
IgniteUuid futId,
int batchNum) |
boolean |
obsolete() |
boolean |
obsolete(GridCacheVersion exclude) |
boolean |
obsoleteOrDeleted() |
GridCacheVersion |
obsoleteVersion() |
void |
onMarkedObsolete()
This method should be called each time entry is marked obsolete
other than by calling
markObsolete(GridCacheVersion). |
boolean |
onTtlExpired(GridCacheVersion obsoleteVer)
Callback from ttl processor to cache entry indicating that entry is expired.
|
void |
onUnlock()
Calls
GridDhtLocalPartition.onUnlock() for this entry's partition. |
int |
partition() |
boolean |
partitionValid() |
@Nullable CacheObject |
peek()
Peeks into entry without loading value or updating statistics.
|
@Nullable CacheObject |
peek(boolean heap,
boolean offheap,
AffinityTopologyVersion topVer,
@Nullable IgniteCacheExpiryPolicy plc)
Peeks into entry without loading value or updating statistics.
|
@Nullable CacheObject |
peekVisibleValue()
Peeks value provided to public API entries and to entry filters.
|
<V> V |
putMetaIfAbsent(int key,
V val)
Adds given metadata value only if it was absent.
|
long |
rawExpireTime() |
CacheObject |
rawGet() |
CacheObject |
rawPut(CacheObject val,
long ttl) |
long |
rawTtl() |
Collection<GridCacheMvccCandidate> |
remoteMvccSnapshot(GridCacheVersion... exclude)
Gets all remote versions.
|
boolean |
removeLock(GridCacheVersion ver) |
<V> V |
removeMeta(int key)
Removes metadata by key.
|
<V> boolean |
removeMeta(int key,
V val)
Removes metadata only if its current value is equal to
val passed in. |
<V> boolean |
replaceMeta(int key,
V curVal,
V newVal)
Replaces given metadata with new
newVal value only if its current value
is equal to curVal. |
boolean |
tmLock(IgniteInternalTx tx,
long timeout,
@Nullable GridCacheVersion serOrder,
@Nullable GridCacheVersion serReadVer,
boolean read)
This locks is called by transaction manager during prepare step
for optimistic transactions.
|
void |
touch()
Touch this entry in its context's eviction manager.
|
long |
ttl() |
IgniteTxKey |
txKey() |
void |
txUnlock(IgniteInternalTx tx)
Unlocks acquired lock.
|
void |
unlockEntry()
Unlocks entry previously locked by
lockEntry(). |
@Nullable CacheObject |
unswap() |
@Nullable CacheObject |
unswap(boolean needVal)
Unswap ignoring flags.
|
@Nullable CacheObject |
unswap(CacheDataRow row) |
void |
updateIndex(SchemaIndexCacheFilter filter,
SchemaIndexCacheVisitorClosure clo)
Update index from within entry lock, passing key, value, and expiration time to provided closure.
|
void |
updateTtl(@Nullable GridCacheVersion ver,
long ttl) |
boolean |
valid(AffinityTopologyVersion topVer) |
CacheObject |
valueBytes() |
@Nullable CacheObject |
valueBytes(@Nullable GridCacheVersion ver)
Gets cached serialized value bytes.
|
GridCacheVersion |
version() |
<K,V> GridCacheVersionedEntryEx<K,V> |
versionedEntry(boolean keepBinary)
Create versioned entry for this cache entry.
|
EntryGetResult |
versionedValue(CacheObject val,
@Nullable GridCacheVersion curVer,
@Nullable GridCacheVersion newVer,
@Nullable IgniteCacheExpiryPolicy loadExpiryPlc,
@Nullable ReaderArguments readerArgs)
Sets new value if passed in version matches the current version
(used for read-through only).
|
<K,V> javax.cache.Cache.Entry<K,V> |
wrap()
Wraps this map entry into cache entry.
|
<K,V> EvictableEntry<K,V> |
wrapEviction() |
<K,V> javax.cache.Cache.Entry<K,V> |
wrapLazyValue(boolean keepBinary)
Wraps entry to an entry with lazy value get.
|
<K,V> CacheEntryImplEx<K,V> |
wrapVersioned() |
int memorySize()
throws IgniteCheckedException
IgniteCheckedException - If failed.boolean isInternal()
True if entry is internal cache entry.boolean isDht()
True if DHT.boolean isNear()
True if near.boolean isReplicated()
True if replicated.boolean isLocal()
True if local.boolean isMvcc()
True if this is n entry from MVCC cache.boolean detached()
False if entry belongs to cache map, true if this entry was created in colocated
cache and node is not primary for this key.boolean deleted()
True if entry has been already deleted.<K,V> GridCacheContext<K,V> context()
int partition()
KeyCacheObject key()
IgniteTxKey txKey()
CacheObject rawGet()
boolean hasValue()
True if has value or value bytes.CacheObject rawPut(CacheObject val, long ttl)
val - New value.ttl - Time to live.<K,V> javax.cache.Cache.Entry<K,V> wrap()
<K,V> javax.cache.Cache.Entry<K,V> wrapLazyValue(boolean keepBinary)
keepBinary - Keep binary flag.@Nullable @Nullable CacheObject peekVisibleValue()
<K,V> EvictableEntry<K,V> wrapEviction()
<K,V> CacheEntryImplEx<K,V> wrapVersioned()
GridCacheVersion obsoleteVersion()
boolean obsolete()
True if entry is obsolete.boolean obsoleteOrDeleted()
True if entry is obsolete or deleted.deleted()boolean obsolete(GridCacheVersion exclude)
exclude - Obsolete version to ignore.True if obsolete version is not null and is not the
passed in version.@Nullable @Nullable GridCacheEntryInfo info()
@Nullable @Nullable List<GridCacheEntryInfo> allVersionsInfo() throws IgniteCheckedException
IgniteCheckedExceptionboolean invalidate(GridCacheVersion newVer) throws IgniteCheckedException
newVer - New version to set.true if entry is obsolete.IgniteCheckedException - If swap could not be released.boolean evictInternal(GridCacheVersion obsoleteVer, @Nullable @Nullable CacheEntryPredicate[] filter, boolean evictOffheap) throws IgniteCheckedException
obsoleteVer - Version for eviction.filter - Optional filter.evictOffheap - Evict offheap value flag.True if entry could be evicted.IgniteCheckedException - In case of error.void onMarkedObsolete()
markObsolete(GridCacheVersion).boolean isNew()
throws GridCacheEntryRemovedException
True if entry is new.GridCacheEntryRemovedException - If entry was removed.boolean isNewLocked()
throws GridCacheEntryRemovedException
True if entry is new.GridCacheEntryRemovedException - If entry was removed.boolean valid(AffinityTopologyVersion topVer)
topVer - Topology version where validation should be performed.
When negative the latest available topology should be used.boolean partitionValid()
True if partition is in valid.CacheObject innerGet(@Nullable @Nullable GridCacheVersion ver, @Nullable @Nullable IgniteInternalTx tx, boolean readThrough, boolean updateMetrics, boolean evt, UUID subjId, Object transformClo, String taskName, @Nullable @Nullable IgniteCacheExpiryPolicy expiryPlc, boolean keepBinary) throws IgniteCheckedException, GridCacheEntryRemovedException
ver - Cache version to set. The version will be used on updating entry instead of generated one.tx - Ongoing transaction (possibly null).readThrough - Flag indicating whether to read through.updateMetrics - If true then metrics should be updated.evt - Flag to signal event notification.subjId - Subject ID initiated this read.transformClo - Transform closure to record event.taskName - Task name.expiryPlc - Expiry policy.keepBinary - Keep binary flag.IgniteCheckedException - If loading value failed.GridCacheEntryRemovedException - If entry was removed.EntryGetResult innerGetVersioned(@Nullable @Nullable GridCacheVersion ver, IgniteInternalTx tx, boolean updateMetrics, boolean evt, UUID subjId, Object transformClo, String taskName, @Nullable @Nullable IgniteCacheExpiryPolicy expiryPlc, boolean keepBinary, @Nullable @Nullable ReaderArguments readerArgs) throws IgniteCheckedException, GridCacheEntryRemovedException
ver - Cache version to set. The version will be used on updating entry instead of generated one.tx - Cache transaction.updateMetrics - If true then metrics should be updated.evt - Flag to signal event notification.subjId - Subject ID initiated this read.transformClo - Transform closure to record event.taskName - Task name.expiryPlc - Expiry policy.keepBinary - Keep binary flag.readerArgs - Reader will be added if not null.IgniteCheckedException - If loading value failed.GridCacheEntryRemovedException - If entry was removed.EntryGetResult innerGetAndReserveForLoad(boolean updateMetrics, boolean evt, UUID subjId, String taskName, @Nullable @Nullable IgniteCacheExpiryPolicy expiryPlc, boolean keepBinary, @Nullable @Nullable ReaderArguments readerArgs) throws IgniteCheckedException, GridCacheEntryRemovedException
updateMetrics - If true then metrics should be updated.evt - Flag to signal event notification.subjId - Subject ID initiated this read.taskName - Task name.expiryPlc - Expiry policy.keepBinary - Keep binary flag.readerArgs - Reader will be added if not null.IgniteCheckedException - If loading value failed.GridCacheEntryRemovedException - If entry was removed.void clearReserveForLoad(GridCacheVersion ver)
ver - Expected entry version.@Nullable @Nullable CacheObject innerReload() throws IgniteCheckedException, GridCacheEntryRemovedException
IgniteCheckedException - If reload failed.GridCacheEntryRemovedException - If entry has been removed.GridCacheUpdateTxResult mvccSet(@Nullable @Nullable IgniteInternalTx tx, UUID affNodeId, CacheObject val, javax.cache.processor.EntryProcessor entryProc, Object[] invokeArgs, long ttl0, AffinityTopologyVersion topVer, MvccSnapshot mvccVer, GridCacheOperation op, boolean needHistory, boolean noCreate, boolean needOldVal, @Nullable @Nullable CacheEntryPredicate filter, boolean retVal, boolean keepBinary) throws IgniteCheckedException, GridCacheEntryRemovedException
tx - Cache transaction.affNodeId - Partitioned node iD.val - Value to set.entryProc - Entry processor.invokeArgs - Entry processor invoke arguments.ttl0 - TTL.topVer - Topology version.mvccVer - Mvcc version.op - Cache operation.needHistory - Whether to collect rows created or affected by the current tx.noCreate - Entry should not be created when enabled, e.g. SQL INSERT.needOldVal - Flag if it is need to return the old value (value before current tx has been started).filter - Filter.retVal - Previous value return flag.keepBinary - Keep binary flag.false,
then value is null.IgniteCheckedException - If storing value failed.GridCacheEntryRemovedException - If entry has been removed.GridCacheUpdateTxResult mvccRemove(@Nullable @Nullable IgniteInternalTx tx, UUID affNodeId, AffinityTopologyVersion topVer, MvccSnapshot mvccVer, boolean needHist, boolean needOldValue, @Nullable @Nullable CacheEntryPredicate filter, boolean retVal) throws IgniteCheckedException, GridCacheEntryRemovedException
tx - Cache transaction.affNodeId - Partitioned node iD.topVer - Topology version.mvccVer - Mvcc version.needHist - Whether to collect rows created or affected by the current tx.needOldValue - Flag if it is need to return the old value (value before current tx has been started).filter - Filter.retVal - Previous value return flag.false,
then value is null.IgniteCheckedException - If storing value failed.GridCacheEntryRemovedException - If entry has been removed.GridCacheUpdateTxResult mvccLock(GridDhtTxLocalAdapter tx, MvccSnapshot mvccVer) throws GridCacheEntryRemovedException, IgniteCheckedException
tx - Transaction adapter.mvccVer - Mvcc version.GridCacheEntryRemovedException - If entry has been removed.IgniteCheckedException - If locking failedGridCacheUpdateTxResult innerSet(@Nullable @Nullable IgniteInternalTx tx, UUID evtNodeId, UUID affNodeId, @Nullable @Nullable CacheObject val, boolean writeThrough, boolean retval, long ttl, boolean evt, boolean metrics, boolean keepBinary, boolean oldValPresent, @Nullable @Nullable CacheObject oldVal, AffinityTopologyVersion topVer, CacheEntryPredicate[] filter, GridDrType drType, long drExpireTime, @Nullable @Nullable GridCacheVersion explicitVer, @Nullable @Nullable UUID subjId, String taskName, @Nullable @Nullable GridCacheVersion dhtVer, @Nullable @Nullable Long updateCntr) throws IgniteCheckedException, GridCacheEntryRemovedException
tx - Cache transaction.evtNodeId - ID of node responsible for this change.affNodeId - Partitioned node iD.val - Value to set.writeThrough - If true then persist to storage.retval - True if value should be returned (and unmarshalled if needed).ttl - Time to live.evt - Flag to signal event notification.metrics - Flag to signal metrics update.keepBinary - Keep binary flag.oldValPresent - True if oldValue present.oldVal - Old value.topVer - Topology version.filter - Filter.drType - DR type.drExpireTime - DR expire time (if any).explicitVer - Explicit version (if any).subjId - Subject ID initiated this update.taskName - Task name.dhtVer - Dht version for near cache entry.updateCntr - Update counter.false,
then value is null.IgniteCheckedException - If storing value failed.GridCacheEntryRemovedException - If entry has been removed.GridCacheUpdateTxResult innerRemove(@Nullable @Nullable IgniteInternalTx tx, UUID evtNodeId, UUID affNodeId, boolean retval, boolean evt, boolean metrics, boolean keepBinary, boolean oldValPresent, @Nullable @Nullable CacheObject oldVal, AffinityTopologyVersion topVer, CacheEntryPredicate[] filter, GridDrType drType, @Nullable @Nullable GridCacheVersion explicitVer, @Nullable @Nullable UUID subjId, String taskName, @Nullable @Nullable GridCacheVersion dhtVer, @Nullable @Nullable Long updateCntr) throws IgniteCheckedException, GridCacheEntryRemovedException
tx - Cache transaction.evtNodeId - ID of node responsible for this change.affNodeId - Partitioned node iD.retval - True if value should be returned (and unmarshalled if needed).evt - Flag to signal event notification.metrics - Flag to signal metrics notification.keepBinary - Keep binary flag.oldValPresent - True if oldValue present.oldVal - Old value.topVer - Topology version.filter - Filter.drType - DR type.explicitVer - Explicit version (if any).subjId - Subject ID initiated this update.taskName - Task name.dhtVer - Dht version for near cache entry.false,
then value is null.IgniteCheckedException - If remove failed.GridCacheEntryRemovedException - If entry has been removed.GridCacheUpdateAtomicResult innerUpdate(GridCacheVersion ver, UUID evtNodeId, UUID affNodeId, GridCacheOperation op, @Nullable @Nullable Object val, @Nullable @Nullable Object[] invokeArgs, boolean writeThrough, boolean readThrough, boolean retval, boolean keepBinary, @Nullable @Nullable IgniteCacheExpiryPolicy expiryPlc, boolean evt, boolean metrics, boolean primary, boolean checkVer, AffinityTopologyVersion topVer, @Nullable @Nullable CacheEntryPredicate[] filter, GridDrType drType, long conflictTtl, long conflictExpireTime, @Nullable @Nullable GridCacheVersion conflictVer, boolean conflictResolve, boolean intercept, @Nullable @Nullable UUID subjId, String taskName, @Nullable @Nullable CacheObject prevVal, @Nullable @Nullable Long updateCntr, @Nullable @Nullable GridDhtAtomicAbstractUpdateFuture fut, boolean transformOp) throws IgniteCheckedException, GridCacheEntryRemovedException
ver - Cache version to set. Entry will be updated only if current version is less then passed version.evtNodeId - Event node ID.affNodeId - Affinity node ID.op - Update operation.val - Value. Type depends on operation.invokeArgs - Optional arguments for entry processor.writeThrough - Write through flag.readThrough - Read through flag.retval - Return value flag.expiryPlc - Expiry policy.evt - Event flag.metrics - Metrics update flag.primary - If update is performed on primary node (the one which assigns version).checkVer - Whether update should check current version and ignore update if current version is
greater than passed in.topVer - Topology version.filter - Optional filter to check.drType - DR type.conflictTtl - Conflict TTL (if any).conflictExpireTime - Conflict expire time (if any).conflictVer - DR version (if any).conflictResolve - If true then performs conflicts resolution.intercept - If true then calls cache interceptor.subjId - Subject ID initiated this update.taskName - Task name.updateCntr - Update counter.fut - Dht atomic future.transformOp - True if transform operation caused update.null if conflict resolution was not performed, the last boolean - whether update should be
propagated to backups or not.IgniteCheckedException - If update failed.GridCacheEntryRemovedException - If entry is obsolete.GridTuple3<Boolean,Object,javax.cache.processor.EntryProcessorResult<Object>> innerUpdateLocal(GridCacheVersion ver, GridCacheOperation op, @Nullable @Nullable Object writeObj, @Nullable @Nullable Object[] invokeArgs, boolean writeThrough, boolean readThrough, boolean retval, boolean keepBinary, @Nullable @Nullable javax.cache.expiry.ExpiryPolicy expiryPlc, boolean evt, boolean metrics, @Nullable @Nullable CacheEntryPredicate[] filter, boolean intercept, @Nullable @Nullable UUID subjId, String taskName, boolean transformOp) throws IgniteCheckedException, GridCacheEntryRemovedException
ver - Cache version.op - Operation.writeObj - Value. Type depends on operation.invokeArgs - Optional arguments for EntryProcessor.writeThrough - Write through flag.readThrough - Read through flag.retval - Return value flag.expiryPlc - Expiry policy..evt - Event flag.metrics - Metrics update flag.filter - Optional filter to check.intercept - If true then calls cache interceptor.subjId - Subject ID initiated this update.taskName - Task name.transformOp - True if transform operation caused update.IgniteCheckedException - If update failed.GridCacheEntryRemovedException - If entry is obsolete.boolean clear(GridCacheVersion ver, boolean readers) throws IgniteCheckedException
ver - Obsolete version.readers - Flag to clear readers as well.True if entry was not being used, passed the filter and could be removed.IgniteCheckedException - If failed to remove from swap.boolean tmLock(IgniteInternalTx tx, long timeout, @Nullable @Nullable GridCacheVersion serOrder, @Nullable @Nullable GridCacheVersion serReadVer, boolean read) throws GridCacheEntryRemovedException, GridDistributedLockCancelledException
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.GridDistributedLockCancelledException - If lock has been cancelled.void txUnlock(IgniteInternalTx tx) throws GridCacheEntryRemovedException
tx - Cache transaction.GridCacheEntryRemovedException - If this entry has been removed from cache.boolean removeLock(GridCacheVersion ver) throws GridCacheEntryRemovedException
ver - Removes lock.True If lock has been removed.GridCacheEntryRemovedException - If this entry has been removed from cache.boolean markObsolete(GridCacheVersion ver)
ver - Version to set as obsolete.True if entry is obsolete, false if
entry is still used by other threads or nodes.boolean markObsoleteIfEmpty(@Nullable
@Nullable GridCacheVersion ver)
throws IgniteCheckedException
null or entry is expired and no
locks are held.ver - Version to set as obsolete.True if entry was marked obsolete.IgniteCheckedException - If failed.boolean markObsoleteVersion(GridCacheVersion ver)
ver.ver - Version to compare with.True if marked obsolete.GridCacheVersion version() throws GridCacheEntryRemovedException
GridCacheEntryRemovedException - If entry has been removed.boolean checkSerializableReadVersion(GridCacheVersion serReadVer) throws GridCacheEntryRemovedException
serReadVer - Version read in serializable transaction.True if version check passed.GridCacheEntryRemovedException - If entry has been removed.@Nullable @Nullable CacheObject mvccPeek(boolean onheapOnly) throws GridCacheEntryRemovedException, IgniteCheckedException
onheapOnly - True if a specified peek mode instructs to look only in the on-heap storage.null otherwise.GridCacheEntryRemovedException - If entry has been removed.IgniteCheckedException - If failed.@Nullable @Nullable CacheObject peek(boolean heap, boolean offheap, AffinityTopologyVersion topVer, @Nullable @Nullable IgniteCacheExpiryPolicy plc) throws GridCacheEntryRemovedException, IgniteCheckedException
heap - Read from heap flag.offheap - Read from offheap flag.topVer - Topology version.plc - Expiry policy if TTL should be updated.GridCacheEntryRemovedException - If entry has been removed.IgniteCheckedException - If failed.@Nullable @Nullable CacheObject peek() throws GridCacheEntryRemovedException, IgniteCheckedException
GridCacheEntryRemovedException - If entry has been removed.IgniteCheckedException - If failed.default boolean initialValue(CacheObject val, GridCacheVersion ver, long ttl, long expireTime, boolean preload, AffinityTopologyVersion topVer, GridDrType drType, boolean fromStore) throws IgniteCheckedException, GridCacheEntryRemovedException
val - New value.ver - Version to use.ttl - Time to live.expireTime - Expiration time.preload - Flag indicating whether entry is being preloaded.topVer - Topology version.drType - DR type.fromStore - True if value was loaded from store.True if initial value was set.IgniteCheckedException - In case of error.GridCacheEntryRemovedException - If entry was removed.default boolean initialValue(CacheObject val, GridCacheVersion ver, @Nullable @Nullable MvccVersion mvccVer, @Nullable @Nullable MvccVersion newMvccVer, byte mvccTxState, byte newMvccTxState, long ttl, long expireTime, boolean preload, AffinityTopologyVersion topVer, GridDrType drType, boolean fromStore) throws IgniteCheckedException, GridCacheEntryRemovedException
val - New value.ver - Version to use.mvccVer - Mvcc version.newMvccVer - New mvcc version.mvccTxState - Tx state hint for mvcc version.newMvccTxState - Tx state hint for new mvcc version.ttl - Time to live.expireTime - Expiration time.preload - Flag indicating whether entry is being preloaded.topVer - Topology version.drType - DR type.fromStore - True if value was loaded from store.True if initial value was set.IgniteCheckedException - In case of error.GridCacheEntryRemovedException - If entry was removed.boolean initialValue(CacheObject val, GridCacheVersion ver, @Nullable @Nullable MvccVersion mvccVer, @Nullable @Nullable MvccVersion newMvccVer, byte mvccTxState, byte newMvccTxState, long ttl, long expireTime, boolean preload, AffinityTopologyVersion topVer, GridDrType drType, boolean fromStore, @Nullable @Nullable CacheDataRow row) throws IgniteCheckedException, GridCacheEntryRemovedException
val - New value.ver - Version to use.mvccVer - Mvcc version.newMvccVer - New mvcc version.mvccTxState - Tx state hint for mvcc version.newMvccTxState - Tx state hint for new mvcc version.ttl - Time to live.expireTime - Expiration time.preload - Flag indicating whether entry is being preloaded.topVer - Topology version.drType - DR type.fromStore - True if value was loaded from store.row - Pre-created data row, associated with this cache entry.True if initial value was set.IgniteCheckedException - In case of error.GridCacheEntryRemovedException - If entry was removed.<K,V> GridCacheVersionedEntryEx<K,V> versionedEntry(boolean keepBinary) throws IgniteCheckedException, GridCacheEntryRemovedException
keepBinary - Keep binary flag.IgniteCheckedException - In case of error.GridCacheEntryRemovedException - If entry was removed.EntryGetResult versionedValue(CacheObject val, @Nullable @Nullable GridCacheVersion curVer, @Nullable @Nullable GridCacheVersion newVer, @Nullable @Nullable IgniteCacheExpiryPolicy loadExpiryPlc, @Nullable @Nullable ReaderArguments readerArgs) throws IgniteCheckedException, GridCacheEntryRemovedException
val - New value.curVer - Version to match or null if match is not required.newVer - Version to set.loadExpiryPlc - Expiry policy if entry is loaded from store.readerArgs - Reader will be added if not null.IgniteCheckedException - If index could not be updated.GridCacheEntryRemovedException - If entry was removed.boolean hasLockCandidate(GridCacheVersion ver) throws GridCacheEntryRemovedException
ver - Candidate version to check.True if the candidate is either owner or pending.GridCacheEntryRemovedException - If entry was removed.boolean hasLockCandidate(long threadId)
throws GridCacheEntryRemovedException
threadId - ThreadId.True if the candidate is either owner or pending.GridCacheEntryRemovedException - If entry was removed.boolean lockedByAny(GridCacheVersion... exclude) throws GridCacheEntryRemovedException
exclude - Exclude versions.True if lock is owned by any thread or node.GridCacheEntryRemovedException - If entry was removed.boolean lockedByThread()
throws GridCacheEntryRemovedException
True if lock is owned by current thread.GridCacheEntryRemovedException - If entry was removed.boolean lockedLocallyByIdOrThread(GridCacheVersion lockVer, long threadId) throws GridCacheEntryRemovedException
lockVer - Lock ID.threadId - Thread ID.True if locked either locally or by thread.GridCacheEntryRemovedException - If removed.boolean lockedLocally(GridCacheVersion lockVer) throws GridCacheEntryRemovedException
lockVer - Lock ID to check.True if lock is owned by candidate.GridCacheEntryRemovedException - If entry was removed.boolean lockedByThread(long threadId,
GridCacheVersion exclude)
throws GridCacheEntryRemovedException
threadId - Thread ID to check.exclude - Version to exclude from check.True if lock is owned by given thread.GridCacheEntryRemovedException - If entry was removed.boolean lockedByThread(long threadId)
throws GridCacheEntryRemovedException
threadId - Thread ID to check.True if lock is owned by given thread.GridCacheEntryRemovedException - If entry was removed.boolean lockedBy(GridCacheVersion ver) throws GridCacheEntryRemovedException
ver - Version to check for ownership.True if owner has the specified version.GridCacheEntryRemovedException - If entry was removed.boolean lockedByThreadUnsafe(long threadId)
threadId - Thread ID to check.True if lock is owned by given thread.boolean lockedByUnsafe(GridCacheVersion ver)
ver - Version to check for ownership.True if owner has the specified version.boolean lockedLocallyUnsafe(GridCacheVersion lockVer)
lockVer - Lock ID to check.True if lock is owned by candidate.boolean hasLockCandidateUnsafe(GridCacheVersion ver)
ver - Lock version to check.True if has candidate with given lock ID.@Nullable @Nullable GridCacheMvccCandidate localCandidate(long threadId) throws GridCacheEntryRemovedException
threadId - Thread ID.GridCacheEntryRemovedException - If entry was removed.Collection<GridCacheMvccCandidate> localCandidates(@Nullable GridCacheVersion... exclude) throws GridCacheEntryRemovedException
exclude - Versions to exclude from check.GridCacheEntryRemovedException - If entry was removed.Collection<GridCacheMvccCandidate> remoteMvccSnapshot(GridCacheVersion... exclude)
exclude - Exclude version.@Nullable @Nullable GridCacheMvccCandidate candidate(GridCacheVersion ver) throws GridCacheEntryRemovedException
ver - Lock version.GridCacheEntryRemovedException - If entry was removed.@Nullable @Nullable GridCacheMvccCandidate candidate(UUID nodeId, long threadId) throws GridCacheEntryRemovedException
nodeId - Node ID.threadId - Thread ID.GridCacheEntryRemovedException - If entry was removed.@Nullable @Nullable GridCacheMvccCandidate localOwner() throws GridCacheEntryRemovedException
GridCacheEntryRemovedException - If entry was removed.CacheObject valueBytes() throws GridCacheEntryRemovedException
GridCacheEntryRemovedException - If entry was removed.@Nullable @Nullable CacheObject valueBytes(@Nullable @Nullable GridCacheVersion ver) throws IgniteCheckedException, GridCacheEntryRemovedException
ver - Version for which to get value bytes.IgniteCheckedException - If serialization failed.GridCacheEntryRemovedException - If entry was removed.void updateIndex(SchemaIndexCacheFilter filter, SchemaIndexCacheVisitorClosure clo) throws IgniteCheckedException, GridCacheEntryRemovedException
filter - Row filter.clo - Closure to apply to key, value, and expiration time.IgniteCheckedException - If failed.GridCacheEntryRemovedException - If entry was removed.long rawExpireTime()
long expireTime()
throws GridCacheEntryRemovedException
GridCacheEntryRemovedException - If entry was removed.long expireTimeUnlocked()
boolean onTtlExpired(GridCacheVersion obsoleteVer) throws GridCacheEntryRemovedException
obsoleteVer - Version to set obsolete if entry is expired.True if this entry was expired as a result of this call.GridCacheEntryRemovedException - If entry was removed.long rawTtl()
long ttl() throws GridCacheEntryRemovedException
GridCacheEntryRemovedException - If entry was removed.void updateTtl(@Nullable
@Nullable GridCacheVersion ver,
long ttl)
throws GridCacheEntryRemovedException
ver - Version.ttl - Time to live.GridCacheEntryRemovedException@Nullable @Nullable CacheObject unswap() throws IgniteCheckedException, GridCacheEntryRemovedException
IgniteCheckedException - If failed to read from swap storage.GridCacheEntryRemovedException - If entry was removed.@Nullable @Nullable CacheObject unswap(CacheDataRow row) throws IgniteCheckedException, GridCacheEntryRemovedException
row - Already extracted value.IgniteCheckedException - If failed to read from swap storage.GridCacheEntryRemovedException - If entry was removed.@Nullable @Nullable CacheObject unswap(boolean needVal) throws IgniteCheckedException, GridCacheEntryRemovedException
needVal - If false then do not need to deserialize value during unswap.IgniteCheckedException - If failed.GridCacheEntryRemovedException - If entry was removed.boolean hasMeta(int key)
key - Key of the metadata to test.@Nullable <V> V meta(int key)
V - Type of the value.key - Metadata key.null.@Nullable
<V> V addMeta(int key,
V val)
V - Type of the value.key - Metadata key.val - Metadata value.null if there was none.@Nullable
<V> V putMetaIfAbsent(int key,
V val)
V - Type of the value.key - Metadata key.val - Value to add if it's not attached already.null if new value was put, or current value if put didn't happen.<V> boolean replaceMeta(int key,
V curVal,
V newVal)
newVal value only if its current value
is equal to curVal. Otherwise, it is no-op.key - Key of the metadata.curVal - Current value to check.newVal - New value.true if replacement occurred, false otherwise.@Nullable <V> V removeMeta(int key)
V - Type of the value.key - Key of the metadata to remove.null.<V> boolean removeMeta(int key,
V val)
val passed in.V - Value type.key - key of metadata attribute.val - Value to compare.True if value was removed, false otherwise.void onUnlock()
GridDhtLocalPartition.onUnlock() for this entry's partition.void lockEntry()
unlockEntry().void unlockEntry()
lockEntry().boolean lockedByCurrentThread()
True if the entry is locked.lockEntry().,
unlockEntry().GridCacheUpdateTxResult mvccUpdateRowsWithPreloadInfo(IgniteInternalTx tx, UUID affNodeId, AffinityTopologyVersion topVer, List<GridCacheEntryInfo> entries, GridCacheOperation op, MvccSnapshot mvccVer, IgniteUuid futId, int batchNum) throws IgniteCheckedException, GridCacheEntryRemovedException
tx - Transaction.affNodeId - Affinity node id.topVer - Topology version.entries - Entries.op - Cache operation.mvccVer - Mvcc version.futId - Future id.batchNum - Batch number.IgniteCheckedException, - If failed.GridCacheEntryRemovedException, - If entry has been removed.IgniteCheckedExceptionGridCacheEntryRemovedExceptionboolean mvccPreloadEntry(List<GridCacheMvccEntryInfo> entries) throws IgniteCheckedException, GridCacheEntryRemovedException
entries - Entries.True if initial value was set.IgniteCheckedException, - If failed.GridCacheEntryRemovedException, - If entry has been removed.IgniteCheckedExceptionGridCacheEntryRemovedExceptionvoid touch()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020