-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce BookmarkManager #1285
Conversation
96c9f27
to
bfb1a37
Compare
32c12cd
to
6526902
Compare
249adb7
to
816ab27
Compare
Bookmark manager is a new opt-in feature that is enabled via driver `Config`. It is responsible for providing an up-to-date set of bookmarks to driver on session creation and database data access. Driver provides a default implementation via `BookmarkManagers.defaultManager`. The default implementation keeps track of a single local driver instance bookmarks only. However, it supports 2 extension points: - `updateListener` - a listener for new bookmarks - `bookmarkSupplier` - a supplier of additional bookmarks It is possible to turn off bookmark manager on session level using `SessionConfig` even when it is enabled on the driver level. Please note that this feature might have an impact on setups that do not manage the driver directly since there is a chance of getting a driver with bookmarks manager enabled. Javadoc includes more general details.
816ab27
to
2045d6c
Compare
testkit-backend/src/main/java/neo4j/org/testkit/backend/messages/requests/NewDriver.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔖 🕴🏼
Please, you may have to do few tweaks in the backend for implementing the bookmark manager extension functions.
Thanks you. Sure, it will be updated separately. |
Further surface update: #1290 |
Bookmark manager is a new opt-in feature that is enabled via driver
Config
.It is responsible for providing an up-to-date set of bookmarks to driver on session creation and database data access.
Driver provides a default implementation via
BookmarkManagers.defaultManager
. The default implementation keeps track of a single local driver instance bookmarks only. However, it supports 2 extension points:-
updateListener
- a listener for new bookmarks-
bookmarkSupplier
- a supplier of additional bookmarksIt is possible to turn off bookmark manager on session level using
SessionConfig
even when it is enabled on the driver level.Please note that this feature might have an impact on setups that do not manage the driver directly since there is a chance of getting a driver with bookmarks manager enabled.
Javadoc includes more general details.