Interface ThreadsRepository

  • All Implemented Interfaces:

    
    public interface ThreadsRepository
    
                        

    Repository for read/write operations related to threads.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • upsertMessageInThread

         abstract Unit upsertMessageInThread(Message message)

        Upsert a Message in the corresponding thread (if such exists).

      • upsertMessagesInThread

         abstract Unit upsertMessagesInThread(List<Message> messages)

        Upsert a list of Messages in the corresponding thread (if such exists).

      • selectThread

         abstract Thread selectThread(String id)

        Retrieves the Thread identified by id.

        Parameters:
        id - The ID of the Thread to retrieve.
      • selectThreads

         abstract List<Thread> selectThreads(List<String> ids)

        Retrieves all Threads identified by the supplied ids.

        Parameters:
        ids - The identifiers of the Threads to select.
      • deleteChannelThreads

         abstract Unit deleteChannelThreads(String cid)

        Deletes all threads from a channel.

        Parameters:
        cid - The ID of the channel to delete the threads from.
      • clear

         abstract Unit clear()

        Deletes all data related to threads.