public abstract class IgniteTxRemoteStateAdapter extends Object implements IgniteTxRemoteState
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
mvccEnabled |
| Constructor and Description |
|---|
IgniteTxRemoteStateAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addActiveCache(GridCacheContext cctx,
boolean recovery,
IgniteTxAdapter tx) |
void |
awaitLastFuture(GridCacheSharedContext cctx) |
@Nullable GridIntList |
cacheIds()
Gets caches ids affected with current tx.
|
@Nullable Integer |
firstCacheId() |
boolean |
hasInterceptor(GridCacheSharedContext cctx) |
boolean |
implicitSingle() |
boolean |
mvccEnabled() |
void |
onTxEnd(GridCacheSharedContext cctx,
IgniteInternalTx tx,
boolean commit) |
@Nullable GridCacheContext |
singleCacheContext(GridCacheSharedContext cctx) |
boolean |
storeWriteThrough(GridCacheSharedContext cctx) |
CacheWriteSynchronizationMode |
syncMode(GridCacheSharedContext cctx) |
GridDhtTopologyFuture |
topologyReadLock(GridCacheSharedContext cctx,
GridFutureAdapter<?> fut) |
void |
topologyReadUnlock(GridCacheSharedContext cctx) |
boolean |
useMvccCaching(int cacheId) |
IgniteCheckedException |
validateTopology(GridCacheSharedContext cctx,
boolean read,
GridDhtTopologyFuture topFut) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddWriteEntry, clearEntry, invalidPartitionallEntries, empty, entry, hasWriteKey, readEntries, readMap, readSet, singleWrite, stores, unwindEvicts, writeEntries, writeMap, writeSetpublic boolean implicitSingle()
implicitSingle in interface IgniteTxState@Nullable public @Nullable Integer firstCacheId()
firstCacheId in interface IgniteTxState@Nullable public @Nullable GridIntList cacheIds()
cacheIds in interface IgniteTxStatepublic void awaitLastFuture(GridCacheSharedContext cctx)
awaitLastFuture in interface IgniteTxStatecctx - Awaits for previous async operations on active caches to be completed.public IgniteCheckedException validateTopology(GridCacheSharedContext cctx, boolean read, GridDhtTopologyFuture topFut)
validateTopology in interface IgniteTxStatecctx - Context.read - True if validating for a read operation, false for write.topFut - Topology future.public CacheWriteSynchronizationMode syncMode(GridCacheSharedContext cctx)
syncMode in interface IgniteTxStatecctx - Context.public void addActiveCache(GridCacheContext cctx, boolean recovery, IgniteTxAdapter tx) throws IgniteCheckedException
addActiveCache in interface IgniteTxStatecctx - Context.tx - Transaction.IgniteCheckedException - If cache check failed.public GridDhtTopologyFuture topologyReadLock(GridCacheSharedContext cctx, GridFutureAdapter<?> fut)
topologyReadLock in interface IgniteTxStatecctx - Context.fut - Future to finish with error if some cache is stopping.public void topologyReadUnlock(GridCacheSharedContext cctx)
topologyReadUnlock in interface IgniteTxStatecctx - Context.public boolean storeWriteThrough(GridCacheSharedContext cctx)
storeWriteThrough in interface IgniteTxStatecctx - Context.True if transaction is allowed to use store and transactions spans one or more caches with
store enabled.public boolean hasInterceptor(GridCacheSharedContext cctx)
hasInterceptor in interface IgniteTxStatecctx - Context.True if transaction spans one or more caches with configured interceptor.@Nullable public @Nullable GridCacheContext singleCacheContext(GridCacheSharedContext cctx)
singleCacheContext in interface IgniteTxStatecctx - Context.public void onTxEnd(GridCacheSharedContext cctx, IgniteInternalTx tx, boolean commit)
onTxEnd in interface IgniteTxStatecctx - Context.tx - Transaction.commit - Commit flag.public boolean mvccEnabled()
mvccEnabled in interface IgniteTxStateTrue if MVCC mode is enabled for transaction.public boolean useMvccCaching(int cacheId)
useMvccCaching in interface IgniteTxStatecacheId - 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.9.0 Release Date : October 15 2020