Class GridDhtPartitionsAbstractMessage

    • Field Detail

      • flags

        protected byte flags
    • Constructor Detail

      • GridDhtPartitionsAbstractMessage

        protected GridDhtPartitionsAbstractMessage()
        Required by Externalizable.
    • Method Detail

      • partition

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

        @Nullable
        public @Nullable GridDhtPartitionExchangeId exchangeId()
        Returns:
        Exchange ID. Null if message doesn't belong to exchange process.
      • lastVersion

        @Nullable
        public @Nullable GridCacheVersion lastVersion()
        Returns:
        Last used version among all nodes.
      • compressed

        public final boolean compressed()
        Returns:
        True if message data is compressed.
      • compressed

        public final void compressed​(boolean compressed)
        Parameters:
        compressed - True if message data is compressed.
      • restoreState

        public boolean restoreState()
        Returns:
        Restore exchange state flag.
      • 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.