public abstract class IgniteTxLocalAdapter<K,V> extends IgniteTxAdapter<K,V> implements IgniteTxLocalEx<K,V>
| Modifier and Type | Class and Description |
|---|---|
protected class |
IgniteTxLocalAdapter.FinishClosure<T>
Post-lock closure.
|
protected class |
IgniteTxLocalAdapter.PLC1<T>
Post-lock closure alias.
|
protected class |
IgniteTxLocalAdapter.PLC2<T>
Post-lock closure alias.
|
protected class |
IgniteTxLocalAdapter.PMC<T>
Post-lock closure alias.
|
protected class |
IgniteTxLocalAdapter.PostLockClosure1<T>
Post-lock closure.
|
protected class |
IgniteTxLocalAdapter.PostLockClosure2<T>
Post-lock closure.
|
protected class |
IgniteTxLocalAdapter.PostMissClosure<T>
Post-lock closure.
|
IgniteInternalTx.FinalizationStatus| Modifier and Type | Field and Description |
|---|---|
protected Set<Integer> |
activeCacheIds
Active cache IDs.
|
protected AtomicReference<Throwable> |
commitErr
Commit error.
|
protected AtomicBoolean |
doneFlag
Flag indicating with TM commit happened.
|
protected GridCacheReturn<V> |
implicitRes
Implicit transaction result.
|
protected GridCacheVersion |
minVer
Minimal version encountered (either explicit lock or XID of this transaction).
|
protected boolean |
needRetVal
Need return value.
|
protected IgniteTxMap<K,V> |
readView
Read view on transaction map.
|
protected Map<IgniteTxKey<K>,IgniteTxEntry<K,V>> |
txMap
Per-transaction read map.
|
protected IgniteTxMap<K,V> |
writeView
Write view on transaction map.
|
cctx, concurrency, endVer, grpLockKey, implicit, implicitSingle, internal, invalidate, isDone, isolation, loc, log, nodeId, onePhaseCommit, startTime, startVer, storeEnabled, subjId, syncCommit, syncRollback, taskName, taskNameHash, threadId, timeout, transform, txNodes, txSize, writeVer, xidVer| Modifier | Constructor and Description |
|---|---|
protected |
IgniteTxLocalAdapter()
Empty constructor required for
Externalizable. |
protected |
IgniteTxLocalAdapter(GridCacheSharedContext<K,V> cctx,
GridCacheVersion xidVer,
boolean implicit,
boolean implicitSingle,
boolean sys,
TransactionConcurrency concurrency,
TransactionIsolation isolation,
long timeout,
boolean invalidate,
boolean storeEnabled,
int txSize,
IgniteTxKey grpLockKey,
boolean partLock,
UUID subjId,
int taskNameHash) |
| Modifier and Type | Method and Description |
|---|---|
protected IgniteCacheExpiryPolicy |
accessPolicy(GridCacheContext ctx,
IgniteTxKey<K> key,
javax.cache.expiry.ExpiryPolicy expiryPlc) |
Collection<Integer> |
activeCacheIds()
Gets collection of active cache IDs for this transaction.
|
protected void |
addActiveCache(GridCacheContext<K,V> cacheCtx)
Adds cache to the list of active caches in transaction.
|
protected IgniteTxEntry<K,V> |
addEntry(GridCacheOperation op,
V val,
javax.cache.processor.EntryProcessor entryProcessor,
Object[] invokeArgs,
GridCacheEntryEx<K,V> entry,
javax.cache.expiry.ExpiryPolicy expiryPlc,
IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter,
boolean filtersSet,
long drTtl,
long drExpireTime,
GridCacheVersion drVer) |
protected void |
addGroupTxMapping(Collection<IgniteTxKey<K>> keys)
Adds key mapping to transaction.
|
Collection<IgniteTxEntry<K,V>> |
allEntries() |
Collection<GridCacheVersion> |
alternateVersions() |
protected void |
batchStoreCommit(Iterable<IgniteTxEntry<K,V>> writeEntries)
Performs batch database operations.
|
protected void |
checkValid()
Checks transaction expiration.
|
void |
commit()
Commits this transaction by initiating
two-phase-commit process. |
protected boolean |
commitAfterLock() |
Throwable |
commitError() |
void |
commitError(Throwable e) |
Collection<GridCacheVersion> |
committedVersions() |
GridCacheVersion |
completedBase() |
void |
completedVersions(GridCacheVersion completedBase,
Collection<GridCacheVersion> committedVers,
Collection<GridCacheVersion> rolledbackVers) |
boolean |
empty() |
protected IgniteInternalFuture<Set<K>> |
enlistWrite(GridCacheContext<K,V> cacheCtx,
Collection<? extends K> keys,
GridCacheEntryEx<K,V> cached,
javax.cache.expiry.ExpiryPolicy expiryPlc,
boolean implicit,
Map<? extends K,? extends V> lookup,
Map<? extends K,javax.cache.processor.EntryProcessor<K,V,Object>> invokeMap,
Object[] invokeArgs,
boolean retval,
boolean lockOnly,
IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter,
GridCacheReturn<V> ret,
Collection<K> enlisted,
Map<? extends K,GridCacheDrInfo<V>> drPutMap,
Map<? extends K,GridCacheVersion> drRmvMap)
Internal routine for putAll(..)
|
IgniteTxEntry<K,V> |
entry(IgniteTxKey<K> key) |
protected GridCacheEntryEx<K,V> |
entryEx(GridCacheContext<K,V> cacheCtx,
IgniteTxKey<K> key)
Gets cache entry for given key.
|
protected GridCacheEntryEx<K,V> |
entryEx(GridCacheContext<K,V> cacheCtx,
IgniteTxKey<K> key,
long topVer)
Gets cache entry for given key and topology version.
|
long |
entryExpireTime(IgniteTxKey<K> key) |
long |
entryTtl(IgniteTxKey<K> key) |
boolean |
entryTtl(IgniteTxKey<K> key,
long ttl) |
UUID |
eventNodeId() |
IgniteInternalFuture<Map<K,V>> |
getAllAsync(GridCacheContext<K,V> cacheCtx,
Collection<? extends K> keys,
GridCacheEntryEx<K,V> cached,
boolean deserializePortable,
boolean skipVals) |
IgniteInternalFuture<?> |
groupLockAsync(GridCacheContext<K,V> cacheCtx,
Collection<K> keys)
Performs keys locking for affinity-based group lock transactions.
|
boolean |
hasWriteKey(IgniteTxKey<K> key) |
GridCacheReturn<V> |
implicitSingleResult() |
void |
implicitSingleResult(GridCacheReturn<V> ret) |
boolean |
init()
Initializes read map.
|
<T> IgniteInternalFuture<GridCacheReturn<Map<K,javax.cache.processor.EntryProcessorResult<T>>>> |
invokeAsync(GridCacheContext<K,V> cacheCtx,
Map<? extends K,? extends javax.cache.processor.EntryProcessor<K,V,Object>> map,
Object... invokeArgs) |
boolean |
isStarted() |
IgniteInternalFuture<Boolean> |
loadMissing(GridCacheContext<K,V> cacheCtx,
boolean readThrough,
boolean async,
Collection<? extends K> keys,
boolean deserializePortable,
boolean skipVals,
IgniteBiInClosure<K,V> c) |
Collection<UUID> |
masterNodeIds() |
GridCacheVersion |
minVersion()
Gets minimum version present in transaction.
|
boolean |
needReturnValue() |
void |
needReturnValue(boolean needRetVal) |
boolean |
onOwnerChanged(GridCacheEntryEx<K,V> entry,
GridCacheMvccCandidate<K> owner)
Callback invoked whenever there is a lock that has been acquired
by this transaction for any of the participating entries.
|
UUID |
originatingNodeId()
Gets node ID which directly started this transaction.
|
boolean |
partitionLock() |
GridTuple<V> |
peek(GridCacheContext<K,V> cacheCtx,
boolean failFast,
K key,
IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter) |
protected Set<K> |
postLockWrite(GridCacheContext<K,V> cacheCtx,
Iterable<? extends K> keys,
Set<K> failed,
GridCacheReturn ret,
boolean rmv,
boolean retval,
boolean read,
long accessTtl,
IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter,
boolean computeInvoke)
Post lock processing for put or remove.
|
void |
prepare()
Prepare state.
|
IgniteInternalFuture<GridCacheReturn<V>> |
putAllAsync(GridCacheContext<K,V> cacheCtx,
Map<? extends K,? extends V> map,
boolean retval,
GridCacheEntryEx<K,V> cached,
long ttl,
IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter) |
IgniteInternalFuture<?> |
putAllDrAsync(GridCacheContext<K,V> cacheCtx,
Map<? extends K,GridCacheDrInfo<V>> drMap) |
Collection<IgniteTxEntry<K,V>> |
readEntries() |
Map<IgniteTxKey<K>,IgniteTxEntry<K,V>> |
readMap() |
Set<IgniteTxKey<K>> |
readSet() |
IgniteInternalFuture<GridCacheReturn<V>> |
removeAllAsync(GridCacheContext<K,V> cacheCtx,
Collection<? extends K> keys,
GridCacheEntryEx<K,V> cached,
boolean retval,
IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter) |
IgniteInternalFuture<?> |
removeAllDrAsync(GridCacheContext<K,V> cacheCtx,
Map<? extends K,GridCacheVersion> drMap) |
boolean |
removed(IgniteTxKey<K> key)
Checks whether given key has been removed within transaction.
|
Collection<GridCacheVersion> |
rolledbackVersions() |
void |
seal()
Seals transaction for updates.
|
void |
sendTransformedValues(boolean snd) |
void |
tmCommit()
Commits transaction to transaction manager.
|
String |
toString() |
protected void |
updateExplicitVersion(IgniteTxEntry<K,V> txEntry,
GridCacheEntryEx<K,V> entry)
Updates explicit version for tx entry based on current entry lock owner.
|
void |
userCommit() |
void |
userPrepare() |
void |
userRollback() |
Collection<IgniteTxEntry<K,V>> |
writeEntries() |
Map<IgniteTxKey<K>,IgniteTxEntry<K,V>> |
writeMap() |
Set<IgniteTxKey<K>> |
writeSet() |
addInvalidPartition, applyTransformClosures, awaitCompletion, awaitSignal, checkInternal, close, colocated, commitVersion, commitVersion, concurrency, conflictResolve, dht, done, endTime, endVersion, endVersion, enforceSerializable, equals, evictNearEntry, finalizationStatus, finishFuture, groupLock, groupLockEntry, groupLockKey, hashCode, hasTransforms, implicit, implicitSingle, initCommitVersion, internal, invalidate, invalidPartitions, ioPolicy, isInvalidate, isNearLocallyMapped, isolation, isRollbackOnly, isSystemInvalidate, local, lock, lockTimeout, log, markFinalizing, markPreparing, near, nearXidVersion, needsCompletedVersions, nodeId, onePhaseCommit, onePhaseCommit, onTimeout, optimistic, optimisticLockEntries, otherNodeId, ownedVersion, ownsLock, ownsLockUnsafe, pessimistic, proxy, readCommitted, readExternal, readResolve, remainingTime, repeatableRead, replicated, resolveTaskName, serializable, setRollbackOnly, signalAll, size, startTime, startVersion, state, state, store, storeEnabled, storeEnabled, storeUsed, subjectId, syncCommit, syncCommit, syncRollback, syncRollback, system, systemInvalidate, taskNameHash, threadId, timedOut, timeout, timeout, timeoutId, topologyVersion, topologyVersion, transactionNodes, transactionNodes, uncommit, unlock, updateNearCache, user, writeExternal, writeVersion, writeVersion, xid, xidVersionaddMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, clone, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, putMetaIfAbsent, readExternalMeta, removeMeta, removeMeta, replaceMeta, writeExternalMetafinalize, getClass, notify, notifyAll, wait, wait, waitfinish, groupLockEntryaddInvalidPartition, addMeta, close, colocated, commitAsync, commitVersion, commitVersion, concurrency, dht, done, endVersion, endVersion, enforceSerializable, finishFuture, groupLock, groupLockKey, hasTransforms, implicit, implicitSingle, internal, invalidate, invalidPartitions, ioPolicy, isInvalidate, isolation, isRollbackOnly, isSystemInvalidate, local, markFinalizing, markPreparing, meta, near, nearXidVersion, needsCompletedVersions, nodeId, onePhaseCommit, optimistic, optimisticLockEntries, otherNodeId, ownedVersion, ownsLock, ownsLockUnsafe, pessimistic, prepareAsync, proxy, readCommitted, remainingTime, removeMeta, repeatableRead, replicated, rollback, rollbackAsync, serializable, setRollbackOnly, size, startTime, startVersion, state, state, storeEnabled, storeUsed, subjectId, syncCommit, syncRollback, system, systemInvalidate, taskNameHash, threadId, timedOut, timeout, timeout, topologyVersion, topologyVersion, transactionNodes, user, writeVersion, writeVersion, xid, xidVersionendTime, onTimeout, timeoutId@GridToStringExclude protected Map<IgniteTxKey<K>,IgniteTxEntry<K,V>> txMap
@GridToStringExclude protected IgniteTxMap<K,V> readView
@GridToStringExclude protected IgniteTxMap<K,V> writeView
protected GridCacheVersion minVer
protected AtomicBoolean doneFlag
protected AtomicReference<Throwable> commitErr
protected boolean needRetVal
protected GridCacheReturn<V> implicitRes
protected IgniteTxLocalAdapter()
Externalizable.protected IgniteTxLocalAdapter(GridCacheSharedContext<K,V> cctx, GridCacheVersion xidVer, boolean implicit, boolean implicitSingle, boolean sys, TransactionConcurrency concurrency, TransactionIsolation isolation, long timeout, boolean invalidate, boolean storeEnabled, int txSize, @Nullable IgniteTxKey grpLockKey, boolean partLock, @Nullable UUID subjId, int taskNameHash)
cctx - Cache registry.xidVer - Transaction ID.implicit - True if transaction was implicitly started by the system,
false if it was started explicitly by user.implicitSingle - True if transaction is implicit with only one key.sys - System flag.concurrency - Concurrency.isolation - Isolation.timeout - Timeout.txSize - Expected transaction size.grpLockKey - Group lock key if this is a group-lock transaction.partLock - True if this is a group-lock transaction and lock is acquired for whole partition.public UUID eventNodeId()
eventNodeId in interface IgniteInternalTx<K,V>public UUID originatingNodeId()
originatingNodeId in interface IgniteInternalTx<K,V>public boolean empty()
empty in interface IgniteInternalTx<K,V>True if transaction is empty.public Collection<UUID> masterNodeIds()
masterNodeIds in interface IgniteInternalTx<K,V>public boolean partitionLock()
partitionLock in interface IgniteTxLocalEx<K,V>True if keys from the same partition are allowed to be enlisted in group-lock transaction.public Throwable commitError()
commitError in interface IgniteTxLocalEx<K,V>public void commitError(Throwable e)
commitError in interface IgniteTxLocalEx<K,V>e - Commit error.public boolean onOwnerChanged(GridCacheEntryEx<K,V> entry, GridCacheMvccCandidate<K> owner)
onOwnerChanged in interface IgniteInternalTx<K,V>entry - Cache entry.owner - Lock candidate that won ownership of the lock.True if transaction cared about notification.public Collection<Integer> activeCacheIds()
activeCacheIds in interface IgniteInternalTx<K,V>public boolean isStarted()
isStarted in class IgniteTxAdapter<K,V>True if transaction has at least one key enlisted.public boolean hasWriteKey(IgniteTxKey<K> key)
hasWriteKey in interface IgniteInternalTx<K,V>key - Key to check.True if key is present.public Set<IgniteTxKey<K>> readSet()
readSet in interface IgniteInternalTx<K,V>public Set<IgniteTxKey<K>> writeSet()
writeSet in interface IgniteInternalTx<K,V>public boolean removed(IgniteTxKey<K> key)
removed in interface IgniteInternalTx<K,V>key - Key to check.True if key has been removed.public Map<IgniteTxKey<K>,IgniteTxEntry<K,V>> readMap()
readMap in interface IgniteInternalTx<K,V>public Map<IgniteTxKey<K>,IgniteTxEntry<K,V>> writeMap()
writeMap in interface IgniteInternalTx<K,V>public Collection<IgniteTxEntry<K,V>> allEntries()
allEntries in interface IgniteInternalTx<K,V>public Collection<IgniteTxEntry<K,V>> readEntries()
readEntries in interface IgniteInternalTx<K,V>public Collection<IgniteTxEntry<K,V>> writeEntries()
writeEntries in interface IgniteInternalTx<K,V>@Nullable public IgniteTxEntry<K,V> entry(IgniteTxKey<K> key)
entry in interface IgniteInternalTx<K,V>key - Key for the entry.public void seal()
seal in interface IgniteInternalTx<K,V>public GridCacheReturn<V> implicitSingleResult()
implicitSingleResult in interface IgniteTxLocalEx<K,V>public void implicitSingleResult(GridCacheReturn<V> ret)
ret - Result.public boolean needReturnValue()
public void needReturnValue(boolean needRetVal)
needRetVal - Need return value flag.public void sendTransformedValues(boolean snd)
snd - True if values in tx entries should be replaced with transformed values and sent
to remote nodes.protected boolean commitAfterLock()
True if should be committed after lock is acquired.@Nullable public GridTuple<V> peek(GridCacheContext<K,V> cacheCtx, boolean failFast, K key, IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter) throws GridCacheFilterFailedException
peek in interface IgniteInternalTx<K,V>cacheCtx - Cache context.failFast - Fail-fast flag.key - Key to look up.filter - Filter to check.GridCacheFilterFailedException - If filter failed and failFast is true.public IgniteInternalFuture<Boolean> loadMissing(GridCacheContext<K,V> cacheCtx, boolean readThrough, boolean async, Collection<? extends K> keys, boolean deserializePortable, boolean skipVals, IgniteBiInClosure<K,V> c)
loadMissing in interface IgniteTxLocalEx<K,V>cacheCtx - Cache context.readThrough - Read through flag.async - if True, then loading will happen in a separate thread.keys - Keys.deserializePortable - Deserialize portable flag.skipVals - Skip values flag.c - Closure.True value if loading took place.public GridCacheVersion minVersion()
minVersion in interface IgniteTxLocalEx<K,V>public void userPrepare()
throws IgniteCheckedException
IgniteCheckedException - If prepare step failed.public void commit()
throws IgniteCheckedException
two-phase-commit process.commit in interface IgniteInternalTx<K,V>IgniteCheckedException - If commit failed.public void prepare()
throws IgniteCheckedException
prepare in interface IgniteInternalTx<K,V>IgniteCheckedException - If failed.protected GridCacheEntryEx<K,V> entryEx(GridCacheContext<K,V> cacheCtx, IgniteTxKey<K> key)
cacheCtx - Cache context.key - Key.protected GridCacheEntryEx<K,V> entryEx(GridCacheContext<K,V> cacheCtx, IgniteTxKey<K> key, long topVer)
cacheCtx - Cache context.key - Key.topVer - Topology version.protected void batchStoreCommit(Iterable<IgniteTxEntry<K,V>> writeEntries) throws IgniteCheckedException
userCommit(). This way if there is a DB failure,
cache transaction can still be rolled back.writeEntries - Transaction write set.IgniteCheckedException - If batch update failed.public void userCommit()
throws IgniteCheckedException
userCommit in interface IgniteTxLocalEx<K,V>IgniteCheckedException - If commit failed.public void tmCommit()
public void completedVersions(GridCacheVersion completedBase, Collection<GridCacheVersion> committedVers, Collection<GridCacheVersion> rolledbackVers)
completedVersions in interface IgniteInternalTx<K,V>completedVersions in class IgniteTxAdapter<K,V>completedBase - Base for committed versions.committedVers - Committed transactions relative to base.rolledbackVers - Rolled back transactions relative to base.public GridCacheVersion completedBase()
public Collection<GridCacheVersion> committedVersions()
public Collection<GridCacheVersion> rolledbackVersions()
public void userRollback()
throws IgniteCheckedException
userRollback in interface IgniteTxLocalEx<K,V>IgniteCheckedException - If rollback failed.protected IgniteCacheExpiryPolicy accessPolicy(GridCacheContext ctx, IgniteTxKey<K> key, @Nullable javax.cache.expiry.ExpiryPolicy expiryPlc)
ctx - Cache context.key - Key.expiryPlc - Expiry policy.public IgniteInternalFuture<Map<K,V>> getAllAsync(GridCacheContext<K,V> cacheCtx, Collection<? extends K> keys, @Nullable GridCacheEntryEx<K,V> cached, boolean deserializePortable, boolean skipVals)
getAllAsync in interface IgniteTxLocalEx<K,V>cacheCtx - Cache context.keys - Keys to get.cached - Cached entry if this method is called from entry wrapper.
Cached entry is passed if and only if there is only one key in collection of keys.deserializePortable - Deserialize portable flag.public IgniteInternalFuture<GridCacheReturn<V>> putAllAsync(GridCacheContext<K,V> cacheCtx, Map<? extends K,? extends V> map, boolean retval, @Nullable GridCacheEntryEx<K,V> cached, long ttl, IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter)
putAllAsync in interface IgniteTxLocalEx<K,V>cacheCtx - Cache context.map - Map to put.retval - Flag indicating whether a value should be returned.cached - Cached entry, if any. Will be provided only if map has size 1.ttl - Time to live for entry. If negative, leave unchanged.filter - Filter.public IgniteInternalFuture<?> putAllDrAsync(GridCacheContext<K,V> cacheCtx, Map<? extends K,GridCacheDrInfo<V>> drMap)
putAllDrAsync in interface IgniteTxLocalEx<K,V>cacheCtx - Cache context.drMap - DR map to put.public <T> IgniteInternalFuture<GridCacheReturn<Map<K,javax.cache.processor.EntryProcessorResult<T>>>> invokeAsync(GridCacheContext<K,V> cacheCtx, @Nullable Map<? extends K,? extends javax.cache.processor.EntryProcessor<K,V,Object>> map, Object... invokeArgs)
invokeAsync in interface IgniteTxLocalEx<K,V>cacheCtx - Cache context.map - Entry processors map.invokeArgs - Optional arguments for entry processor.public IgniteInternalFuture<?> removeAllDrAsync(GridCacheContext<K,V> cacheCtx, Map<? extends K,GridCacheVersion> drMap)
removeAllDrAsync in interface IgniteTxLocalEx<K,V>cacheCtx - Cache context.drMap - DR map.protected IgniteInternalFuture<Set<K>> enlistWrite(GridCacheContext<K,V> cacheCtx, Collection<? extends K> keys, @Nullable GridCacheEntryEx<K,V> cached, @Nullable javax.cache.expiry.ExpiryPolicy expiryPlc, boolean implicit, @Nullable Map<? extends K,? extends V> lookup, @Nullable Map<? extends K,javax.cache.processor.EntryProcessor<K,V,Object>> invokeMap, @Nullable Object[] invokeArgs, boolean retval, boolean lockOnly, IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter, GridCacheReturn<V> ret, Collection<K> enlisted, @Nullable Map<? extends K,GridCacheDrInfo<V>> drPutMap, @Nullable Map<? extends K,GridCacheVersion> drRmvMap)
cacheCtx - Cache context.keys - Keys to enlist.cached - Cached entry.expiryPlc - Explicitly specified expiry policy for entry.implicit - Implicit flag.lookup - Value lookup map (null for remove).invokeMap - Map with entry processors for invoke operation.invokeArgs - Optional arguments for EntryProcessor.retval - Flag indicating whether a value should be returned.lockOnly - If true, then entry will be enlisted as noop.filter - User filters.ret - Return value.enlisted - Collection of keys enlisted into this transaction.drPutMap - DR put map (optional).drRmvMap - DR remove map (optional).protected Set<K> postLockWrite(GridCacheContext<K,V> cacheCtx, Iterable<? extends K> keys, Set<K> failed, GridCacheReturn ret, boolean rmv, boolean retval, boolean read, long accessTtl, IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter, boolean computeInvoke) throws IgniteCheckedException
cacheCtx - Context.keys - Keys.failed - Collection of potentially failed keys (need to populate in this method).ret - Return value.rmv - True if remove.retval - Flag to return value or not.read - True if read.accessTtl - TTL for read operation.filter - Filter to check entries.computeInvoke - If true computes return value for invoke operation.IgniteCheckedException - If error.public IgniteInternalFuture<GridCacheReturn<V>> removeAllAsync(GridCacheContext<K,V> cacheCtx, Collection<? extends K> keys, @Nullable GridCacheEntryEx<K,V> cached, boolean retval, IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter)
removeAllAsync in interface IgniteTxLocalEx<K,V>cacheCtx - Cache context.keys - Keys to remove.cached - Cached entry, if any. Will be provided only if size of keys collection is 1.retval - Flag indicating whether a value should be returned.filter - Filter.protected void addGroupTxMapping(Collection<IgniteTxKey<K>> keys)
keys - Keys to add.public IgniteInternalFuture<?> groupLockAsync(GridCacheContext<K,V> cacheCtx, Collection<K> keys)
groupLockAsync in interface IgniteTxLocalEx<K,V>cacheCtx - Cache context.keys - Keys to lock.public boolean init()
True if transaction was successfully started.protected void addActiveCache(GridCacheContext<K,V> cacheCtx) throws IgniteCheckedException
cacheCtx - Cache context to add.IgniteCheckedException - If caches already enlisted in this transaction are not compatible with given
cache (e.g. they have different stores).protected void checkValid()
throws IgniteCheckedException
IgniteCheckedException - If transaction check failed.public Collection<GridCacheVersion> alternateVersions()
alternateVersions in interface IgniteInternalTx<K,V>protected final IgniteTxEntry<K,V> addEntry(GridCacheOperation op, @Nullable V val, @Nullable javax.cache.processor.EntryProcessor entryProcessor, Object[] invokeArgs, GridCacheEntryEx<K,V> entry, @Nullable javax.cache.expiry.ExpiryPolicy expiryPlc, IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter, boolean filtersSet, long drTtl, long drExpireTime, @Nullable GridCacheVersion drVer)
op - Cache operation.val - Value.expiryPlc - Explicitly specified expiry policy.invokeArgs - Optional arguments for EntryProcessor.entryProcessor - Entry processor.entry - Cache entry.filter - Filter.filtersSet - True if filter should be marked as set.drTtl - DR TTL (if any).drExpireTime - DR expire time (if any).drVer - DR version.protected void updateExplicitVersion(IgniteTxEntry<K,V> txEntry, GridCacheEntryEx<K,V> entry) throws GridCacheEntryRemovedException
txEntry - Tx entry to update.entry - Entry.GridCacheEntryRemovedException - If entry was concurrently removed.public String toString()
toString in class IgniteTxAdapter<K,V>public boolean entryTtl(IgniteTxKey<K> key, long ttl)
key - Key.ttl - Time to live.true if tx entry exists for this key, false otherwise.public long entryTtl(IgniteTxKey<K> key)
key - Key.public long entryExpireTime(IgniteTxKey<K> key)
key - Key.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015