Interface MessageIdList

    • Method Detail

      • size

        int size()
      • contains

        boolean contains​(String msgId)
      • add

        void add​(String msgId,
                 boolean persistent)
        Adds a message identifier and indicates whether the identifier should be persistently added or not.
        Parameters:
        msgId - the added message identifier
        persistent - indicates whether the identifier should be persistently added or not
      • isEmpty

        boolean isEmpty()
      • remove

        String remove​(int index)
      • get

        String get​(int index)
      • remove

        void remove​(String msgId)
      • add

        void add​(int index,
                 String msgId,
                 boolean persistent)
        Adds a message identifier at the psecified index and indicates whether the identifier should be persistently added or not.
        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
      • clear

        void clear()
      • save

        void save()
           throws Exception
        Saves the list in the persistent storage.
        Throws:
        Exception
      • delete

        void delete()
        Deletes the list from the persistent storage.