Class MessageIdListImpl

    • Field Detail

      • serialVersionUID

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

        private String listId
    • Constructor Detail

      • MessageIdListImpl

        public MessageIdListImpl()
      • MessageIdListImpl

        public MessageIdListImpl​(String listId)
    • Method Detail

      • setListId

        void setListId​(String listId)
      • add

        public void add​(String msgId,
                        boolean persistent)
        The indicator 'persistent' is ignored because the list is stored as a whole.
        Specified by:
        add in interface MessageIdList
        Parameters:
        msgId - the added message identifier
        persistent - indicates whether the identifier should be persistently added or not
      • add

        public void add​(int index,
                        String msgId,
                        boolean persistent)
        The indicator 'persistent' is ignored because the list is stored as a whole.
        Specified by:
        add in interface MessageIdList
        Parameters:
        index - the index of the added message identifier
        msgId - the added message identifier
        persistent - indicates whether the identifier should be persistently added or not
      • delete

        public void delete()
        Description copied from interface: MessageIdList
        Deletes the list from the persistent storage.
        Specified by:
        delete in interface MessageIdList
      • 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