We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.collaborationengine.
Class CollaborationMessagePersister.FetchQuery
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.collaborationengine.CollaborationMessagePersister.FetchQuery
-
All Implemented Interfaces:
Enclosing interface:
public static class CollaborationMessagePersister.FetchQuery extends 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:
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Method Summary
All Methods Modifier and Type Method Description Instant
getSince()
Gets the timestamp since when messages should be fetched.
MessageManager
getSource()
String
getTopicId()
Gets the topic identifier.
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Method Detail
-
getTopicId
public String getTopicId()
Gets the topic identifier.
Returns:
the topic identifier
-
getSince
public 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 classEventObject
-
-