Class QueueDelivery

    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        define serialVersionUID for interoperability, fix with 5.15.0 value
        See Also:
        Constant Field Values
      • consumerId

        private AgentId consumerId
      • contextId

        private int contextId
      • message

        private transient Message message
    • Constructor Detail

      • QueueDelivery

        public QueueDelivery()
      • QueueDelivery

        public QueueDelivery​(AgentId consumerId,
                             int contextId,
                             Message message)
    • Method Detail

      • getConsumerId

        public AgentId getConsumerId()
      • getContextId

        public int getContextId()
      • getMessage

        public Message getMessage()
      • setMessage

        public void setMessage​(Message message)
      • getEncodableClassId

        public int getEncodableClassId()
        Description copied from interface: Encodable
        Returns a unique class identifier.
        Specified by:
        getEncodableClassId in interface Encodable
        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.
        Specified by:
        getEncodedSize in interface Encodable
        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
        Specified by:
        encode in interface Encodable
        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
        Specified by:
        decode in interface Encodable
        Parameters:
        decoder - the decoder to be used for the decoding
        Throws:
        Exception - if an error occurs