public class IgniteTxImplicitSingleStateImpl extends IgniteTxLocalStateAdapter
| Constructor and Description |
|---|
IgniteTxImplicitSingleStateImpl() |
onTxEndpublic void addActiveCache(GridCacheContext ctx, boolean recovery, IgniteTxLocalAdapter tx) throws IgniteCheckedException
ctx - Context.tx - Transaction.IgniteCheckedException - If cache check failed.@Nullable public GridCacheContext singleCacheContext(GridCacheSharedContext cctx)
cctx - Context.@Nullable public Integer firstCacheId()
public void unwindEvicts(GridCacheSharedContext cctx)
cctx - Grid cache shared context.public void awaitLastFuture(GridCacheSharedContext ctx)
ctx - Awaits for previous async operations on active caches to be completed.public boolean implicitSingle()
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 CacheWriteSynchronizationMode syncMode(GridCacheSharedContext cctx)
cctx - Context.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 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 Collection<IgniteTxEntry> allEntries()
public boolean init(int txSize)
txSize - Transaction size.True if transaction was successfully started.public boolean initialized()
True if init method was called.public void addEntry(IgniteTxEntry entry)
entry - Entry.public void seal()
public IgniteTxEntry singleWrite()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018