public interface GridCacheEntryEx
'Ex' stands for extended).| Modifier and Type | Method and Description |
|---|---|
<V> V |
addMeta(int key,
V val)
Adds a new metadata.
|
GridCacheMvccCandidate |
candidate(GridCacheVersion ver)
Gets lock candidate for given lock ID.
|
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.
|
<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() |
GridCacheBatchSwapEntry |
evictInBatchInternal(GridCacheVersion obsoleteVer)
Evicts entry when batch evict is performed.
|
boolean |
evictInternal(boolean swap,
GridCacheVersion obsoleteVer,
CacheEntryPredicate[] filter) |
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() |
GridCacheEntryInfo |
info() |
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
|
boolean |
initialValue(KeyCacheObject key,
GridCacheSwapEntry unswapped)
Sets new value if current version is 0 using swap entry data.
|
CacheObject |
innerGet(GridCacheVersion ver,
IgniteInternalTx tx,
boolean readSwap,
boolean readThrough,
boolean updateMetrics,
boolean evt,
boolean tmp,
UUID subjId,
Object transformClo,
String taskName,
IgniteCacheExpiryPolicy expiryPlc,
boolean keepBinary) |
T2<CacheObject,GridCacheVersion> |
innerGetVersioned(GridCacheVersion ver,
IgniteInternalTx tx,
boolean readSwap,
boolean unmarshal,
boolean updateMetrics,
boolean evt,
UUID subjId,
Object transformClo,
String taskName,
IgniteCacheExpiryPolicy expiryPlc,
boolean keepBinary) |
CacheObject |
innerReload()
Reloads entry from underlying storage.
|
GridCacheUpdateTxResult |
innerRemove(IgniteInternalTx tx,
UUID evtNodeId,
UUID affNodeId,
boolean retval,
boolean evt,
boolean metrics,
boolean keepBinary,
AffinityTopologyVersion topVer,
CacheEntryPredicate[] filter,
GridDrType drType,
GridCacheVersion explicitVer,
UUID subjId,
String taskName,
GridCacheVersion dhtVer,
Long updateCntr) |
GridCacheUpdateTxResult |
innerSet(IgniteInternalTx tx,
UUID evtNodeId,
UUID affNodeId,
CacheObject val,
boolean writeThrough,
boolean retval,
long ttl,
boolean evt,
boolean metrics,
boolean keepBinary,
AffinityTopologyVersion topVer,
CacheEntryPredicate[] filter,
GridDrType drType,
long drExpireTime,
GridCacheVersion explicitVer,
UUID subjId,
String taskName,
GridCacheVersion dhtVer,
Long updateCntr) |
GridCacheUpdateAtomicResult |
innerUpdate(GridCacheVersion ver,
UUID evtNodeId,
UUID affNodeId,
GridCacheOperation op,
Object val,
Object[] invokeArgs,
boolean writeThrough,
boolean readThrough,
boolean retval,
boolean keepBinary,
IgniteCacheExpiryPolicy expiryPlc,
boolean evt,
boolean metrics,
boolean primary,
boolean checkVer,
AffinityTopologyVersion topVer,
CacheEntryPredicate[] filter,
GridDrType drType,
long conflictTtl,
long conflictExpireTime,
GridCacheVersion conflictVer,
boolean conflictResolve,
boolean intercept,
UUID subjId,
String taskName,
CacheObject prevVal,
Long updateCntr,
GridDhtAtomicUpdateFuture fut) |
GridTuple3<Boolean,Object,javax.cache.processor.EntryProcessorResult<Object>> |
innerUpdateLocal(GridCacheVersion ver,
GridCacheOperation op,
Object writeObj,
Object[] invokeArgs,
boolean writeThrough,
boolean readThrough,
boolean retval,
boolean keepBinary,
javax.cache.expiry.ExpiryPolicy expiryPlc,
boolean evt,
boolean metrics,
CacheEntryPredicate[] filter,
boolean intercept,
UUID subjId,
String taskName)
Update method for local cache in atomic mode.
|
boolean |
invalidate(CacheEntryPredicate[] filter)
Invalidates this entry if it passes given filter.
|
boolean |
invalidate(GridCacheVersion curVer,
GridCacheVersion newVer)
Invalidates this entry.
|
boolean |
isDht() |
boolean |
isInternal() |
boolean |
isLocal() |
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() |
GridCacheMvccCandidate |
localCandidate(long threadId) |
Collection<GridCacheMvccCandidate> |
localCandidates(GridCacheVersion... exclude)
Gets all local candidates.
|
GridCacheMvccCandidate |
localOwner() |
boolean |
lockedBy(GridCacheVersion ver) |
boolean |
lockedByAny(GridCacheVersion... exclude) |
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) |
boolean |
markObsolete(GridCacheVersion ver)
Sets obsolete flag if possible.
|
boolean |
markObsoleteIfEmpty(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.
|
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 |
onOffheapEvict(byte[] entry,
GridCacheVersion evictVer,
GridCacheVersion obsoleteVer)
Called when entry should be evicted from offheap.
|
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() |
CacheObject |
peek(boolean heap,
boolean offheap,
boolean swap,
AffinityTopologyVersion topVer,
IgniteCacheExpiryPolicy plc)
Peeks into entry without loading value or updating statistics.
|
CacheObject |
peek(boolean heap,
boolean offheap,
boolean swap,
IgniteCacheExpiryPolicy plc)
Peeks into entry without loading value or updating statistics.
|
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 |
rawGetOrUnmarshal(boolean tmp) |
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. |
long |
startVersion() |
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.
|
long |
ttl() |
IgniteTxKey |
txKey() |
void |
txUnlock(IgniteInternalTx tx)
Unlocks acquired lock.
|
CacheObject |
unswap() |
CacheObject |
unswap(boolean needVal)
Unswap ignoring flags.
|
void |
updateTtl(GridCacheVersion ver,
long ttl) |
boolean |
valid(AffinityTopologyVersion topVer) |
CacheObject |
valueBytes() |
CacheObject |
valueBytes(GridCacheVersion ver)
Gets cached serialized value bytes.
|
GridCacheVersion |
version() |
<K,V> GridCacheVersionedEntryEx<K,V> |
versionedEntry(boolean keepBinary)
Create versioned entry for this cache entry.
|
GridCacheVersion |
versionedValue(CacheObject val,
GridCacheVersion curVer,
GridCacheVersion newVer)
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 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()
long startVersion()
KeyCacheObject key()
IgniteTxKey txKey()
CacheObject rawGet()
CacheObject rawGetOrUnmarshal(boolean tmp) throws IgniteCheckedException
tmp - If true can return temporary instance which is valid while entry lock is held,
temporary object can used for filter evaluation or transform closure execution and
should not be returned to user.IgniteCheckedException - If failed.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 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 GridCacheEntryInfo info()
boolean invalidate(@Nullable
GridCacheVersion curVer,
GridCacheVersion newVer)
throws IgniteCheckedException
curVer - Current version to match (null means always match).newVer - New version to set.true if entry is obsolete.IgniteCheckedException - If swap could not be released.boolean invalidate(@Nullable
CacheEntryPredicate[] filter)
throws GridCacheEntryRemovedException,
IgniteCheckedException
filter - Optional filter that entry should pass before invalidation.true if entry was actually invalidated.IgniteCheckedException - If swap could not be released.GridCacheEntryRemovedException - If entry was removed.boolean evictInternal(boolean swap,
GridCacheVersion obsoleteVer,
@Nullable
CacheEntryPredicate[] filter)
throws IgniteCheckedException
swap - Swap flag.obsoleteVer - Version for eviction.filter - Optional filter.True if entry could be evicted.IgniteCheckedException - In case of error.GridCacheBatchSwapEntry evictInBatchInternal(GridCacheVersion obsoleteVer) throws IgniteCheckedException
obsoleteVer - Version to mark obsolete with.null if entry was not evicted.IgniteCheckedException - If failed.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.@Nullable CacheObject innerGet(@Nullable GridCacheVersion ver, @Nullable IgniteInternalTx tx, boolean readSwap, boolean readThrough, boolean updateMetrics, boolean evt, boolean tmp, UUID subjId, Object transformClo, String taskName, @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).readSwap - Flag indicating whether to check swap memory.readThrough - Flag indicating whether to read through.updateMetrics - If true then metrics should be updated.evt - Flag to signal event notification.tmp - If true can return temporary instance which is valid while entry lock is held,
temporary object can used for filter evaluation or transform closure execution and
should not be returned to user.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.@Nullable T2<CacheObject,GridCacheVersion> innerGetVersioned(@Nullable GridCacheVersion ver, IgniteInternalTx tx, boolean readSwap, boolean unmarshal, boolean updateMetrics, boolean evt, UUID subjId, Object transformClo, String taskName, @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 - Cache transaction.readSwap - Flag indicating whether to check swap memory.unmarshal - Unmarshal flag.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.@Nullable CacheObject innerReload() throws IgniteCheckedException, GridCacheEntryRemovedException
IgniteCheckedException - If reload failed.GridCacheEntryRemovedException - If entry has been removed.GridCacheUpdateTxResult innerSet(@Nullable IgniteInternalTx tx, UUID evtNodeId, UUID affNodeId, @Nullable CacheObject val, boolean writeThrough, boolean retval, long ttl, boolean evt, boolean metrics, boolean keepBinary, AffinityTopologyVersion topVer, CacheEntryPredicate[] filter, GridDrType drType, long drExpireTime, @Nullable GridCacheVersion explicitVer, @Nullable UUID subjId, String taskName, @Nullable GridCacheVersion dhtVer, @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.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 IgniteInternalTx tx, UUID evtNodeId, UUID affNodeId, boolean retval, boolean evt, boolean metrics, boolean keepBinary, AffinityTopologyVersion topVer, CacheEntryPredicate[] filter, GridDrType drType, @Nullable GridCacheVersion explicitVer, @Nullable UUID subjId, String taskName, @Nullable GridCacheVersion dhtVer, @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.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 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 GridDhtAtomicUpdateFuture fut) 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.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 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) 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.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 GridCacheVersion serOrder, @Nullable GridCacheVersion serReadVer, boolean keepBinary) 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.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
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 CacheObject peek(boolean heap, boolean offheap, boolean swap, AffinityTopologyVersion topVer, @Nullable IgniteCacheExpiryPolicy plc) throws GridCacheEntryRemovedException, IgniteCheckedException
heap - Read from heap flag.offheap - Read from offheap flag.swap - Read from swap flag.topVer - Topology version.plc - Expiry policy if TTL should be updated.GridCacheEntryRemovedException - If entry has been removed.IgniteCheckedException - If failed.@Nullable CacheObject peek(boolean heap, boolean offheap, boolean swap, @Nullable IgniteCacheExpiryPolicy plc) throws GridCacheEntryRemovedException, IgniteCheckedException
heap - Read from heap flag.offheap - Read from offheap flag.swap - Read from swap flag.plc - Expiry policy if TTL should be updated.GridCacheEntryRemovedException - If entry has been removed.IgniteCheckedException - If failed.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.boolean initialValue(KeyCacheObject key, GridCacheSwapEntry unswapped) throws IgniteCheckedException, GridCacheEntryRemovedException
key - Key.unswapped - Swap entry to set entry state from.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.GridCacheVersion versionedValue(CacheObject val, @Nullable GridCacheVersion curVer, @Nullable GridCacheVersion newVer) throws IgniteCheckedException, GridCacheEntryRemovedException
val - New value.curVer - Version to match or null if match is not required.newVer - Version to set.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 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 GridCacheMvccCandidate candidate(GridCacheVersion ver) throws GridCacheEntryRemovedException
ver - Lock version.GridCacheEntryRemovedException - If entry was removed.@Nullable GridCacheMvccCandidate candidate(UUID nodeId, long threadId) throws GridCacheEntryRemovedException
nodeId - Node ID.threadId - Thread ID.GridCacheEntryRemovedException - If entry was removed.@Nullable GridCacheMvccCandidate localOwner() throws GridCacheEntryRemovedException
GridCacheEntryRemovedException - If entry was removed.CacheObject valueBytes() throws GridCacheEntryRemovedException
GridCacheEntryRemovedException - If entry was removed.@Nullable CacheObject valueBytes(@Nullable GridCacheVersion ver) throws IgniteCheckedException, GridCacheEntryRemovedException
ver - Version for which to get value bytes.IgniteCheckedException - If serialization 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
GridCacheVersion ver,
long ttl)
throws GridCacheEntryRemovedException
ver - Version.ttl - Time to live.GridCacheEntryRemovedExceptionboolean onOffheapEvict(byte[] entry,
GridCacheVersion evictVer,
GridCacheVersion obsoleteVer)
throws IgniteCheckedException,
GridCacheEntryRemovedException
If swap is enabled tries to do offheap -> swap eviction, otherwise evicted value should be passed to query manager.
entry - Serialized swap entry.evictVer - Version when entry was selected for eviction.obsoleteVer - Obsolete version.True if entry was obsoleted and written to swap.IgniteCheckedException - If failed.GridCacheEntryRemovedException - If entry was removed.@Nullable CacheObject unswap() throws IgniteCheckedException, GridCacheEntryRemovedException
IgniteCheckedException - If failed to read from swap storage.GridCacheEntryRemovedException - If entry was removed.@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.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.7.0 Release Date : August 1 2016