You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GH-2252 - Allow seeding and retrieval of Neo4j bookmarks from the transaction managers.
This change introduces the `Neo4jBookmarksUpdatedEvent`. It will be published by both the imperative and reactive transaction managers as soon as any of them receives a new bookmark from the cluster. Applications will be able to listen to it by implementation `ApplicationListener<Neo4jBookmarksUpdatedEvent>`. The event returns an unmodifiable view of new bookmarks.
In addition a new constructor has been added to the transaction managers for allowing the configuration of the bookmark system. `org.springframework.data.neo4j.core.transaction.Neo4jBookmarkManager#create(java.util.function.Supplier<java.util.Set<org.neo4j.driver.Bookmark>>)` can be used to add a supplier of bookmarks as seeding mechanism.
This closes#2252.
Copy file name to clipboardExpand all lines: src/main/asciidoc/faq/faq.adoc
+70
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,76 @@ No, you don't.
58
58
SDN uses Neo4j Causal Cluster bookmarks internally without any configuration on your side required.
59
59
Transactions in the same thread or the same reactive stream following each other will be able to read their previously changed values as you would expect.
60
60
61
+
[[faq.bookmarks]]
62
+
== Can I retrieve the latest Bookmarks or seed the transaction manager?
63
+
64
+
As mentioned briefly in <<migrating.bookmarks>>, there is no need to configure anything with regard to bookmarks.
65
+
It may however be useful to retrieve the latest bookmark the SDN transaction system received from a database.
66
+
You can add a `@Bean` like `BookmarkCapture` to do this:
0 commit comments