public class IgniteTxStateImpl extends IgniteTxLocalStateAdapter
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
mvccEnabled |
protected IgniteTxMap |
readView
Read view on transaction map.
|
protected Boolean |
recovery |
protected Map<IgniteTxKey,IgniteTxEntry> |
txMap
Per-transaction read map.
|
protected IgniteTxMap |
writeView
Write view on transaction map.
|
| Constructor and Description |
|---|
IgniteTxStateImpl() |
onTxEnd, touchedPartitions, touchPartition@GridToStringExclude protected Map<IgniteTxKey,IgniteTxEntry> txMap
@GridToStringExclude protected IgniteTxMap readView
@GridToStringExclude protected IgniteTxMap writeView
@GridToStringInclude protected Boolean recovery
@GridToStringInclude protected Boolean mvccEnabled
public boolean implicitSingle()
@Nullable public @Nullable Integer firstCacheId()
@Nullable public @Nullable GridIntList cacheIds()
public void unwindEvicts(GridCacheSharedContext cctx)
cctx - Grid cache shared context.@Nullable public @Nullable GridCacheContext singleCacheContext(GridCacheSharedContext cctx)
cctx - Context.public void awaitLastFuture(GridCacheSharedContext cctx)
cctx - Awaits for previous async operations on active caches to be completed.public IgniteCheckedException validateTopology(GridCacheSharedContext cctx, boolean read, GridDhtTopologyFuture topFut)
cctx - Context.read - True if validating for a read operation, false for write.topFut - Topology future.public boolean recovery()
public CacheWriteSynchronizationMode syncMode(GridCacheSharedContext cctx)
cctx - Context.public void addActiveCache(GridCacheContext cacheCtx, boolean recovery, IgniteTxAdapter tx) throws IgniteCheckedException
cacheCtx - Context.tx - Transaction.IgniteCheckedException - If cache check failed.public GridDhtTopologyFuture topologyReadLock(GridCacheSharedContext cctx, GridFutureAdapter<?> fut)
cctx - Context.fut - Future to finish with error if some cache is stopping.public void topologyReadUnlock(GridCacheSharedContext cctx)
cctx - Context.public boolean storeWriteThrough(GridCacheSharedContext cctx)
cctx - Context.True if transaction is allowed to use store and transactions spans one or more caches with
store enabled.public boolean hasInterceptor(GridCacheSharedContext cctx)
cctx - Context.True if transaction spans one or more caches with configured interceptor.public Collection<CacheStoreManager> stores(GridCacheSharedContext cctx)
cctx - Context.public void onTxEnd(GridCacheSharedContext cctx, IgniteInternalTx tx, boolean commit)
cctx - Context.tx - Transaction.commit - Commit flag.public boolean init(int txSize)
txSize - Transaction size.True if transaction was successfully started.public boolean initialized()
True if init method was called.public Collection<IgniteTxEntry> allEntries()
public Collection<IgniteTxEntry> allEntriesCopy()
public IgniteTxEntry entry(IgniteTxKey key)
key - Key.public boolean hasWriteKey(IgniteTxKey key)
key - Key.True if tx has write key.public Set<IgniteTxKey> readSet()
public Set<IgniteTxKey> writeSet()
public Collection<IgniteTxEntry> writeEntries()
public Collection<IgniteTxEntry> readEntries()
public Map<IgniteTxKey,IgniteTxEntry> writeMap()
public Map<IgniteTxKey,IgniteTxEntry> readMap()
public boolean empty()
True if transaction is empty.public void addEntry(IgniteTxEntry entry)
entry - Entry.public void removeEntry(IgniteTxKey key)
key - Key.public void seal()
public IgniteTxEntry singleWrite()
public boolean mvccEnabled()
True if MVCC mode is enabled for transaction.public boolean useMvccCaching(int cacheId)
cacheId - Cache id.True if it is need to store in the heap updates made by the current TX for the given cache.
These updates will be used for CQ and DR. See MvccCachingManager.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021