Class GridDistributedTxFinishResponse

    • Constructor Detail

      • GridDistributedTxFinishResponse

        public GridDistributedTxFinishResponse()
        Empty constructor required by GridIoMessageFactory.
      • GridDistributedTxFinishResponse

        public GridDistributedTxFinishResponse​(int part,
                                               GridCacheVersion txId,
                                               IgniteUuid futId)
        Parameters:
        part - Partition.
        txId - Transaction id.
        futId - Future ID.
    • Method Detail

      • handlerId

        public int handlerId()
        Specified by:
        handlerId in class GridCacheMessage
        Returns:
        ID to distinguish message handlers for the same messages but for different caches/cache groups.
      • partition

        public final int partition()
        Overrides:
        partition in class GridCacheMessage
        Returns:
        Partition ID this message is targeted to or -1 if it cannot be determined.
      • 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.
      • futureId

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

        public boolean addDeploymentInfo()
        Deployment enabled flag indicates whether deployment info has to be added to this message.
        Specified by:
        addDeploymentInfo in class GridCacheMessage
        Returns:
        true or if deployment info must be added to the the message, false otherwise.
      • writeTo

        public boolean writeTo​(ByteBuffer buf,
                               MessageWriter writer)
        Writes this message to provided byte buffer.
        Specified by:
        writeTo in interface Message
        Overrides:
        writeTo in class GridCacheMessage
        Parameters:
        buf - Byte buffer.
        writer - Writer.
        Returns:
        Whether message was fully written.
      • directType

        public short directType()
        Gets message type.
        Returns:
        Message type.