Class AbstractJmsReply

    • Field Detail

      • correlationId

        protected int correlationId
        Identifier of the replied request.
    • Constructor Detail

      • AbstractJmsReply

        public AbstractJmsReply()
        Constructs an AbstractJmsReply.
      • AbstractJmsReply

        public AbstractJmsReply​(int correlationId)
        Constructs an AbstractJmsReply.
        Parameters:
        correlationId - Identifier of the replied request.
    • Method Detail

      • setCorrelationId

        public final void setCorrelationId​(int correlationId)
        Sets the replied request identifier.
        Parameters:
        correlationId - The replied request identifier.
      • getCorrelationId

        public final int getCorrelationId()
        Returns the replied request identifier.
        Returns:
        The replied request identifier.
      • writeTo

        public void writeTo​(OutputStream os)
                     throws IOException
        The object implements the writeTo method to write its contents to the output stream.
        Parameters:
        os - the stream to write the object to
        Throws:
        IOException - an error occurs during IO operation.
      • readFrom

        public void readFrom​(InputStream is)
                      throws IOException
        The object implements the readFrom method to restore its contents from the input stream.
        Parameters:
        is - the stream to read data from in order to restore the object
        Throws:
        IOException - an error occurs during IO operation.
      • getEncodableClassId

        public int getEncodableClassId()
        Description copied from interface: Encodable
        Returns a unique class identifier.
        Returns:
        a unique class identifier
      • getEncodedSize

        public int getEncodedSize()
                           throws Exception
        Description copied from interface: Encodable
        Returns the size of the byte array that results from the encoding of this object.
        Returns:
        the size of the encoded byte array
        Throws:
        Exception - if an error occurs
      • encode

        public void encode​(Encoder encoder)
                    throws Exception
        Description copied from interface: Encodable
        Encodes the content of this object
        Parameters:
        encoder - the encoder to be used for the encoding
        Throws:
        Exception - if an error occurs
      • decode

        public void decode​(Decoder decoder)
                    throws Exception
        Description copied from interface: Encodable
        Decodes the content of this object
        Parameters:
        decoder - the decoder to be used for the decoding
        Throws:
        Exception - if an error occurs