public interface IgniteTxState
boolean implicitSingle()
@Nullable Integer firstCacheId()
void unwindEvicts(GridCacheSharedContext cctx)
cctx
- Grid cache shared context.@Nullable GridCacheContext singleCacheContext(GridCacheSharedContext cctx)
cctx
- Context.void awaitLastFut(GridCacheSharedContext cctx)
cctx
- Awaits for previous async operations on active caches to be completed.IgniteCheckedException validateTopology(GridCacheSharedContext cctx, boolean read, GridDhtTopologyFuture topFut)
cctx
- Context.read
- True
if validating for a read operation, false
for write.topFut
- Topology future.CacheWriteSynchronizationMode syncMode(GridCacheSharedContext cctx)
cctx
- Context.boolean hasNearCache(GridCacheSharedContext cctx)
cctx
- Context.True
is tx has active near cache.void addActiveCache(GridCacheContext cacheCtx, boolean recovery, IgniteTxLocalAdapter tx) throws IgniteCheckedException
cacheCtx
- Context.tx
- Transaction.IgniteCheckedException
- If cache check failed.GridDhtTopologyFuture topologyReadLock(GridCacheSharedContext cctx, GridFutureAdapter<?> fut)
cctx
- Context.fut
- Future to finish with error if some cache is stopping.void topologyReadUnlock(GridCacheSharedContext cctx)
cctx
- Context.boolean storeWriteThrough(GridCacheSharedContext cctx)
cctx
- Context.True
if transaction is allowed to use store and transactions spans one or more caches with
store enabled.boolean hasInterceptor(GridCacheSharedContext cctx)
cctx
- Context.True
if transaction spans one or more caches with configured interceptor.Collection<CacheStoreManager> stores(GridCacheSharedContext cctx)
cctx
- Context.void onTxEnd(GridCacheSharedContext cctx, IgniteInternalTx tx, boolean commit)
cctx
- Context.tx
- Transaction.commit
- Commit flag.@Nullable IgniteTxEntry entry(IgniteTxKey key)
key
- Key.boolean hasWriteKey(IgniteTxKey key)
key
- Key.True
if tx has write key.Set<IgniteTxKey> readSet()
Set<IgniteTxKey> writeSet()
Collection<IgniteTxEntry> writeEntries()
Collection<IgniteTxEntry> readEntries()
Map<IgniteTxKey,IgniteTxEntry> writeMap()
Map<IgniteTxKey,IgniteTxEntry> readMap()
Collection<IgniteTxEntry> allEntries()
@Nullable IgniteTxEntry singleWrite()
boolean empty()
True
if transaction is empty.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017