Class SnapshotFilesFailureMessage

  • All Implemented Interfaces:
    Serializable, Message

    public class SnapshotFilesFailureMessage
    extends Object
    Message indicating a failure occurred during processing snapshot files request.
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_CODE

        public static final short TYPE_CODE
        Snapshot response message type (value is 179).
        See Also:
        Constant Field Values
    • Constructor Detail

      • SnapshotFilesFailureMessage

        public SnapshotFilesFailureMessage()
        Empty constructor required for Externalizable.
      • SnapshotFilesFailureMessage

        public SnapshotFilesFailureMessage​(String reqId,
                                           String errMsg)
        Parameters:
        reqId - Request id to which response related to.
        errMsg - Response error message.
    • Method Detail

      • errorMessage

        public String errorMessage()
        Returns:
        Response error message.
      • writeTo

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

        public boolean readFrom​(ByteBuffer buf,
                                MessageReader reader)
        Reads this message from provided byte buffer.
        Specified by:
        readFrom in interface Message
        Parameters:
        buf - Byte buffer.
        reader - Reader.
        Returns:
        Whether message was fully read.
      • fieldsCount

        public byte fieldsCount()
        Gets fields count.
        Returns:
        Fields count.
      • directType

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

        public String toString()
      • id

        public String id()
        Returns:
        Unique message ID.
      • onAckReceived

        public void onAckReceived()
        Method called when ack message received.
        Specified by:
        onAckReceived in interface Message