Class IgniteTxStateImpl

    • Constructor Detail

      • IgniteTxStateImpl

        public IgniteTxStateImpl()
    • Method Detail

      • implicitSingle

        public boolean implicitSingle()
        Returns:
        Flag indicating whether transaction is implicit with only one key.
      • firstCacheId

        @Nullable
        public @Nullable Integer firstCacheId()
        Returns:
        First tx cache id.
      • cacheIds

        @Nullable
        public @Nullable GridIntList cacheIds()
        Gets caches ids affected with current tx.
        Returns:
        tx cache ids.
      • unwindEvicts

        public void unwindEvicts​(GridCacheSharedContext cctx)
        Unwind evicts for caches involved in this transaction.
        Parameters:
        cctx - Grid cache shared context.
      • awaitLastFuture

        public void awaitLastFuture()
        Awaits for previous async operations on active caches to be completed.
      • recovery

        public boolean recovery()
        Returns:
        Recovery mode flag.
      • topologyReadUnlock

        public void topologyReadUnlock​(GridCacheSharedContext cctx)
        Parameters:
        cctx - Context.
      • storeWriteThrough

        public boolean storeWriteThrough​(GridCacheSharedContext sctx)
        Parameters:
        sctx - Context.
        Returns:
        True if transaction is allowed to use store and transactions spans one or more caches with store enabled.
      • hasInterceptor

        public boolean hasInterceptor​(GridCacheSharedContext cctx)
        Parameters:
        cctx - Context.
        Returns:
        True if transaction spans one or more caches with configured interceptor.
      • init

        public boolean init​(int txSize)
        Parameters:
        txSize - Transaction size.
        Returns:
        True if transaction was successfully started.
      • initialized

        public boolean initialized()
        Returns:
        True if init method was called.
      • allEntriesCopy

        public Collection<IgniteTxEntry> allEntriesCopy()
        Returns:
        All entries. Returned collection is copy of internal collection.
      • hasWriteKey

        public boolean hasWriteKey​(IgniteTxKey key)
        Parameters:
        key - Key.
        Returns:
        True if tx has write key.
      • readSet

        public Set<IgniteTxKey> readSet()
        Returns:
        Read entries keys.
      • writeSet

        public Set<IgniteTxKey> writeSet()
        Returns:
        Write entries keys.
      • empty

        public boolean empty()
        Returns:
        True if transaction is empty.
      • addEntry

        public void addEntry​(IgniteTxEntry entry)
        Parameters:
        entry - Entry.
      • removeEntry

        public void removeEntry​(IgniteTxKey key)
        Parameters:
        key - Key.
      • seal

        public void seal()
      • singleWrite

        public IgniteTxEntry singleWrite()
        Returns:
        Non-null entry if tx has only one write entry.