Class GridDistributedTxFinishRequest

    • Field Detail

      • WAIT_REMOTE_TX_FLAG_MASK

        protected static final int WAIT_REMOTE_TX_FLAG_MASK
        See Also:
        Constant Field Values
      • CHECK_COMMITTED_FLAG_MASK

        protected static final int CHECK_COMMITTED_FLAG_MASK
        See Also:
        Constant Field Values
      • NEED_RETURN_VALUE_FLAG_MASK

        protected static final int NEED_RETURN_VALUE_FLAG_MASK
        See Also:
        Constant Field Values
      • SYS_INVALIDATE_FLAG_MASK

        protected static final int SYS_INVALIDATE_FLAG_MASK
        See Also:
        Constant Field Values
      • EXPLICIT_LOCK_FLAG_MASK

        protected static final int EXPLICIT_LOCK_FLAG_MASK
        See Also:
        Constant Field Values
      • STORE_ENABLED_FLAG_MASK

        protected static final int STORE_ENABLED_FLAG_MASK
        See Also:
        Constant Field Values
    • Constructor Detail

      • GridDistributedTxFinishRequest

        public GridDistributedTxFinishRequest()
        Empty constructor required by Externalizable.
      • GridDistributedTxFinishRequest

        public GridDistributedTxFinishRequest​(GridCacheVersion xidVer,
                                              IgniteUuid futId,
                                              @NotNull
                                              @NotNull AffinityTopologyVersion topVer,
                                              @Nullable
                                              @Nullable GridCacheVersion commitVer,
                                              long threadId,
                                              boolean commit,
                                              boolean invalidate,
                                              boolean sys,
                                              byte plc,
                                              CacheWriteSynchronizationMode syncMode,
                                              GridCacheVersion baseVer,
                                              Collection<GridCacheVersion> committedVers,
                                              Collection<GridCacheVersion> rolledbackVers,
                                              int taskNameHash,
                                              int txSize,
                                              boolean addDepInfo)
        Parameters:
        xidVer - Transaction ID.
        futId - future ID.
        threadId - Thread ID.
        commitVer - Commit version.
        commit - Commit flag.
        invalidate - Invalidate flag.
        sys - System transaction flag.
        plc - IO policy.
        syncMode - Write synchronization mode.
        baseVer - Base version.
        committedVers - Committed versions.
        rolledbackVers - Rolled back versions.
        txSize - Expected transaction size.
        addDepInfo - Deployment info flag.
    • Method Detail

      • syncMode

        public final CacheWriteSynchronizationMode syncMode()
        Returns:
        Transaction write synchronization mode (can be null is message sent from old nodes).
      • setFlag

        protected final void setFlag​(boolean flag,
                                     int mask)
        Sets flag mask.
        Parameters:
        flag - Set or clear.
        mask - Mask.
      • isFlag

        protected final boolean isFlag​(int mask)
        Reags flag mask.
        Parameters:
        mask - Mask to read.
        Returns:
        Flag value.
      • taskNameHash

        public final int taskNameHash()
        Returns:
        Task name hash.
      • system

        public boolean system()
        Returns:
        System transaction flag.
      • policy

        public byte policy()
        Returns:
        IO policy.
      • futureId

        public IgniteUuid futureId()
        Returns:
        Future ID.
      • threadId

        public long threadId()
        Returns:
        Thread ID.
      • commitVersion

        public GridCacheVersion commitVersion()
        Returns:
        Commit version.
      • commit

        public boolean commit()
        Returns:
        Commit flag.
      • isInvalidate

        public boolean isInvalidate()
        Returns:
        Invalidate flag.
      • txSize

        public int txSize()
        Returns:
        Expected tx size.
      • replyRequired

        public boolean replyRequired()
        Returns:
        True if reply is required.
      • directType

        public short directType()
        Gets message type.
        Specified by:
        directType in interface Message
        Returns:
        Message type.