public abstract class IgniteTxRemoteStateAdapter extends Object implements IgniteTxRemoteState
| Constructor and Description |
|---|
IgniteTxRemoteStateAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addActiveCache(GridCacheContext cctx,
boolean recovery,
IgniteTxAdapter tx) |
void |
awaitLastFuture(GridCacheSharedContext cctx) |
GridIntList |
cacheIds()
Gets caches ids affected with current tx.
|
Integer |
firstCacheId() |
boolean |
hasInterceptor(GridCacheSharedContext cctx) |
boolean |
implicitSingle() |
void |
onTxEnd(GridCacheSharedContext cctx,
IgniteInternalTx tx,
boolean commit) |
GridCacheContext |
singleCacheContext(GridCacheSharedContext cctx) |
boolean |
storeWriteThrough(GridCacheSharedContext cctx) |
CacheWriteSynchronizationMode |
syncMode(GridCacheSharedContext cctx) |
GridDhtTopologyFuture |
topologyReadLock(GridCacheSharedContext cctx,
GridFutureAdapter<?> fut) |
void |
topologyReadUnlock(GridCacheSharedContext cctx) |
IgniteCheckedException |
validateTopology(GridCacheSharedContext cctx,
boolean read,
GridDhtTopologyFuture topFut) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddWriteEntry, clearEntry, invalidPartitionallEntries, empty, entry, hasWriteKey, mvccEnabled, readEntries, readMap, readSet, singleWrite, stores, unwindEvicts, writeEntries, writeMap, writeSetpublic boolean implicitSingle()
implicitSingle in interface IgniteTxState@Nullable public Integer firstCacheId()
firstCacheId in interface IgniteTxState@Nullable public 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 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.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019