Class CollaborationMessagePersister.FetchQuery

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing interface:
    CollaborationMessagePersister

    public static class CollaborationMessagePersister.FetchQuery
    extends java.util.EventObject
    A query to fetch messages from a backend. It provides information such as the topic identifier and the timestamp since when messages should be fetched.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.time.Instant getSince()
      Gets the timestamp since when messages should be fetched.
      MessageManager getSource()  
      java.lang.String getTopicId()
      Gets the topic identifier.
      • Methods inherited from class java.util.EventObject

        toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getTopicId

        public java.lang.String getTopicId()
        Gets the topic identifier.
        Returns:
        the topic identifier
      • getSince

        public java.time.Instant getSince()
        Gets the timestamp since when messages should be fetched.

        Note: You must include the messages sent during or after this timestamp, including the messages sent at this exact time. More formally, you should return all such messages, for which the following condition is true:

         message.getTime() >= fetchQuery.getSince()
         
        Returns:
        the timestamp
      • getSource

        public MessageManager getSource()
        Overrides:
        getSource in class java.util.EventObject