Class EncodedRequest


  • public final class EncodedRequest
    extends Object
    Wrapper object that stores an encoded request with its message ID.
    • Field Detail

      • messageID

        private final int messageID
        Protocol message ID.
      • encoded

        private final byte[] encoded
        Encoded request.
    • Constructor Detail

      • EncodedRequest

        public EncodedRequest​(int id,
                              Request request)
        Creates a new encoded request.
        Parameters:
        id - message ID
        request - to encode
    • Method Detail

      • getMessageID

        public int getMessageID()
        Returns the message ID.
        Returns:
        message ID
      • getEncoded

        public byte[] getEncoded()
        Returns the encoded request.
        Returns:
        encoded request.