public class GridDhtTxRemote extends GridDistributedTxRemoteAdapter
GridMetadataAwareAdapter.EntryKeyIgniteInternalTx.FinalizationStatustxStatecctx, concurrency, consistentIdMapper, endVer, implicit, internal, invalidate, isDone, isolation, loc, log, mvccSnapshot, needRetVal, nodeId, onePhaseCommit, startTime, startVer, storeEnabled, subjId, taskName, taskNameHash, threadId, timeout, topVer, txNodes, txSize, writeVer, xidVer| Constructor and Description |
|---|
GridDhtTxRemote()
Empty constructor required for
Externalizable. |
GridDhtTxRemote(GridCacheSharedContext ctx,
UUID nearNodeId,
IgniteUuid rmtFutId,
UUID nodeId,
AffinityTopologyVersion topVer,
GridCacheVersion xidVer,
GridCacheVersion commitVer,
boolean sys,
byte plc,
TransactionConcurrency concurrency,
TransactionIsolation isolation,
boolean invalidate,
long timeout,
int txSize,
GridCacheVersion nearXidVer,
Map<UUID,Collection<UUID>> txNodes,
UUID subjId,
int taskNameHash,
boolean single,
boolean storeWriteThrough)
This constructor is meant for optimistic transactions.
|
GridDhtTxRemote(GridCacheSharedContext ctx,
UUID nearNodeId,
IgniteUuid rmtFutId,
UUID nodeId,
GridCacheVersion nearXidVer,
AffinityTopologyVersion topVer,
GridCacheVersion xidVer,
GridCacheVersion commitVer,
boolean sys,
byte plc,
TransactionConcurrency concurrency,
TransactionIsolation isolation,
boolean invalidate,
long timeout,
int txSize,
UUID subjId,
int taskNameHash,
boolean storeWriteThrough)
This constructor is meant for pessimistic transactions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInvalidPartition(GridCacheContext cacheCtx,
int part) |
void |
addWrite(GridCacheContext cacheCtx,
GridCacheOperation op,
IgniteTxKey key,
CacheObject val,
Collection<T2<javax.cache.processor.EntryProcessor<Object,Object,Object>,Object[]>> entryProcessors,
long ttl,
boolean skipStore,
boolean keepBinary) |
void |
addWrite(IgniteTxEntry entry,
ClassLoader ldr) |
boolean |
dht() |
UUID |
eventNodeId() |
Collection<UUID> |
masterNodeIds() |
UUID |
nearNodeId() |
GridCacheVersion |
nearXidVersion() |
UUID |
otherNodeId()
Gets ID of additional node involved.
|
boolean |
remote() |
boolean |
storeWriteThrough() |
String |
toString() |
void |
transactionNodes(Map<UUID,Collection<UUID>> txNodes) |
protected boolean |
updateNearCache(GridCacheContext cacheCtx,
KeyCacheObject key,
AffinityTopologyVersion topVer)
Checks whether near cache should be updated.
|
activeCachesDeploymentEnabled, activeCachesDeploymentEnabled, addActiveCache, addExplicit, allEntries, alternateVersions, clearEntry, commitAsync, commitError, commitRemoteTx, doneRemote, empty, entry, forceCommit, hasWriteKey, invalidate, isStarted, onOwnerChanged, originatingNodeId, peek, prepareRemoteTx, readEntries, readMap, readSet, rollbackAsync, rollbackRemoteTx, salvageTx, seal, setPartitionUpdateCounters, skipCompletedVersions, skipCompletedVersions, txState, writeEntries, writeMap, writeSetapplyTransformClosures, applyTxSizes, batchStoreCommit, checkInternal, colocated, commitVersion, commitVersion, completedVersions, concurrency, conflictResolve, context, currentPrepareFuture, done, endVersion, equals, errorWhenCommitting, evictNearEntry, finalizationStatus, finishFuture, hashCode, implicit, implicitSingle, internal, invalidPartitions, ioPolicy, isInvalidate, isNearLocallyMapped, isolation, isRollbackOnly, isSystemInvalidate, isWriteToStoreFromDhtValid, local, localResult, log, markFinalizing, mvccSnapshot, mvccSnapshot, near, needReturnValue, needReturnValue, needsCompletedVersions, nodeId, onePhaseCommit, onePhaseCommit, optimistic, optimisticLockEntries, ownedVersion, ownsLock, ownsLockUnsafe, pessimistic, readCommitted, readExternal, readResolve, recordStateChangedEvent, remainingTime, repeatableRead, resolveTaskName, rollbackException, rollbackFuture, rollbackFuture, serializable, sessionEnd, setRollbackOnly, size, startTime, state, state, state, storeEnabled, storeEnabled, subjectId, system, systemInvalidate, taskNameHash, threadId, timedOut, timeout, timeout, timeoutException, topologyVersion, topologyVersion, topologyVersionSnapshot, transactionNodes, txCounters, uncommit, user, writeExternal, writeVersion, writeVersion, xid, xidVersionaddMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, clone, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, readExternalMeta, removeAllMeta, removeMeta, removeMeta, replaceMeta, writeExternalMetafinalize, getClass, notify, notifyAll, wait, wait, waitaddMeta, colocated, commitVersion, commitVersion, completedVersions, concurrency, currentPrepareFuture, done, endVersion, errorWhenCommitting, finishFuture, implicit, implicitSingle, internal, invalidPartitions, ioPolicy, isInvalidate, isolation, isRollbackOnly, isSystemInvalidate, local, localResult, markFinalizing, meta, mvccSnapshot, mvccSnapshot, near, needsCompletedVersions, nodeId, onePhaseCommit, optimistic, optimisticLockEntries, ownedVersion, ownsLock, ownsLockUnsafe, pessimistic, readCommitted, remainingTime, removeMeta, repeatableRead, serializable, setRollbackOnly, size, startTime, state, state, storeEnabled, subjectId, system, systemInvalidate, taskNameHash, threadId, timedOut, timeout, timeout, topologyVersion, topologyVersion, topologyVersionSnapshot, transactionNodes, txCounters, user, writeVersion, writeVersion, xid, xidVersionpublic GridDhtTxRemote()
Externalizable.public GridDhtTxRemote(GridCacheSharedContext ctx, UUID nearNodeId, IgniteUuid rmtFutId, UUID nodeId, AffinityTopologyVersion topVer, GridCacheVersion xidVer, GridCacheVersion commitVer, boolean sys, byte plc, TransactionConcurrency concurrency, TransactionIsolation isolation, boolean invalidate, long timeout, int txSize, GridCacheVersion nearXidVer, Map<UUID,Collection<UUID>> txNodes, @Nullable UUID subjId, int taskNameHash, boolean single, boolean storeWriteThrough)
ctx - Cache context.nearNodeId - Near node ID.rmtFutId - Remote future ID.nodeId - Node ID.topVer - Topology version.xidVer - XID version.commitVer - Commit version.sys - System flag.concurrency - Concurrency level (should be pessimistic).isolation - Transaction isolation.invalidate - Invalidate flag.timeout - Timeout.txSize - Expected transaction size.nearXidVer - Near transaction ID.txNodes - Transaction nodes mapping.storeWriteThrough - Cache store write through flag.public GridDhtTxRemote(GridCacheSharedContext ctx, UUID nearNodeId, IgniteUuid rmtFutId, UUID nodeId, GridCacheVersion nearXidVer, AffinityTopologyVersion topVer, GridCacheVersion xidVer, GridCacheVersion commitVer, boolean sys, byte plc, TransactionConcurrency concurrency, TransactionIsolation isolation, boolean invalidate, long timeout, int txSize, @Nullable UUID subjId, int taskNameHash, boolean storeWriteThrough)
ctx - Cache context.nearNodeId - Near node ID.rmtFutId - Remote future ID.nodeId - Node ID.nearXidVer - Near transaction ID.topVer - Topology version.xidVer - XID version.commitVer - Commit version.sys - System flag.concurrency - Concurrency level (should be pessimistic).isolation - Transaction isolation.invalidate - Invalidate flag.timeout - Timeout.txSize - Expected transaction size.storeWriteThrough - Cache store write through flag.public void transactionNodes(Map<UUID,Collection<UUID>> txNodes)
transactionNodes in class IgniteTxAdaptertxNodes - Transaction nodes.public boolean remote()
remote in class IgniteTxAdapterpublic boolean dht()
dht in interface IgniteInternalTxdht in class IgniteTxAdapterTrue if DHT transaction.public boolean storeWriteThrough()
storeWriteThrough in interface IgniteInternalTxstoreWriteThrough in class IgniteTxAdapterTrue if transaction is allowed to use store and transactions spans one or more caches with
store enabled.public UUID eventNodeId()
eventNodeId in interface IgniteInternalTxeventNodeId in class GridDistributedTxRemoteAdapterpublic Collection<UUID> masterNodeIds()
public UUID otherNodeId()
otherNodeId in interface IgniteInternalTxotherNodeId in class IgniteTxAdapterpublic GridCacheVersion nearXidVersion()
nearXidVersion in interface IgniteInternalTxnearXidVersion in class IgniteTxAdapterpublic UUID nearNodeId()
protected boolean updateNearCache(GridCacheContext cacheCtx, KeyCacheObject key, AffinityTopologyVersion topVer)
updateNearCache in class IgniteTxAdapterpublic void addInvalidPartition(GridCacheContext cacheCtx, int part)
addInvalidPartition in interface IgniteInternalTxaddInvalidPartition in class IgniteTxAdaptercacheCtx - Cache context.part - Invalid partition.public void addWrite(IgniteTxEntry entry, ClassLoader ldr) throws IgniteCheckedException
entry - Write entry.ldr - Class loader.IgniteCheckedException - If failed.public void addWrite(GridCacheContext cacheCtx, GridCacheOperation op, IgniteTxKey key, @Nullable CacheObject val, @Nullable Collection<T2<javax.cache.processor.EntryProcessor<Object,Object,Object>,Object[]>> entryProcessors, long ttl, boolean skipStore, boolean keepBinary)
cacheCtx - Cache context.op - Write operation.key - Key to add to write set.val - Value.entryProcessors - Entry processors.ttl - TTL.skipStore - Skip store flag.public String toString()
toString in class GridDistributedTxRemoteAdapter
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019