- All Superinterfaces:
Serializable
Keeps track of bookmarks and is used by the driver to ensure causal consistency between sessions and query executions.
Please note that implementations of this interface MUST NOT block for extended periods of time.
Implementations must avoid calling driver.
-
Method Summary
Modifier and TypeMethodDescriptionGets an immutable set of bookmarks.void
updateBookmarks
(Set<Bookmark> previousBookmarks, Set<Bookmark> newBookmarks) Updates bookmarks by deleting the given previous bookmarks and adding the new bookmarks.
-
Method Details
-
updateBookmarks
Updates bookmarks by deleting the given previous bookmarks and adding the new bookmarks.- Parameters:
previousBookmarks
- the previous bookmarksnewBookmarks
- the new bookmarks
-
getBookmarks
Gets an immutable set of bookmarks.- Returns:
- the set of bookmarks.
-