@API(status=STABLE,
since="6.1.1")
public final class Neo4jBookmarkManager
extends Object
| Modifier and Type | Method and Description |
|---|---|
static Neo4jBookmarkManager |
create() |
static Neo4jBookmarkManager |
create(Supplier<Set<org.neo4j.driver.Bookmark>> bookmarksSupplier)
Use this factory method to add supplier of initial "seeding" bookmarks to the transaction managers
While this class will make sure that the supplier will be accessed in a thread-safe manner,
it is the caller's duty to provide a thread safe supplier (not changing the seed during a call, etc.).
|
static Neo4jBookmarkManager |
noop()
Use this bookmark manager at your own risk, it will effectively disable any bookmark management by dropping all
bookmarks and never supplying any.
|
public static Neo4jBookmarkManager create()
public static Neo4jBookmarkManager create(@Nullable Supplier<Set<org.neo4j.driver.Bookmark>> bookmarksSupplier)
While this class will make sure that the supplier will be accessed in a thread-safe manner, it is the caller's duty to provide a thread safe supplier (not changing the seed during a call, etc.).
bookmarksSupplier - A supplier for seeding bookmarks, can be null. The supplier is free to provide different
bookmarks on each call.@API(status=STABLE,
since="6.1.11")
public static Neo4jBookmarkManager noop()
In a cluster this can be a sensible approach only and if only you can tolerate stale reads and are not in danger of overwriting old data.
Copyright © 2019–2022 Neo4j, Neo4j Sweden AB. All rights reserved.