Module org.neo4j.driver
Class RouteMessageRoutingProcedureRunner
java.lang.Object
org.neo4j.driver.internal.cluster.RouteMessageRoutingProcedureRunner
- All Implemented Interfaces:
RoutingProcedureRunner
This implementation of the
RoutingProcedureRunner
access the routing procedure
through the bolt's ROUTE message.-
Constructor Summary
ModifierConstructorDescriptionRouteMessageRoutingProcedureRunner
(RoutingContext routingContext) protected
RouteMessageRoutingProcedureRunner
(RoutingContext routingContext, Supplier<CompletableFuture<Map<String, Value>>> createCompletableFuture) -
Method Summary
Modifier and TypeMethodDescriptionrun
(Connection connection, org.neo4j.driver.internal.DatabaseName databaseName, Set<Bookmark> bookmarks, String impersonatedUser) Run the calls to the server
-
Constructor Details
-
RouteMessageRoutingProcedureRunner
-
RouteMessageRoutingProcedureRunner
protected RouteMessageRoutingProcedureRunner(RoutingContext routingContext, Supplier<CompletableFuture<Map<String, Value>>> createCompletableFuture)
-
-
Method Details
-
run
public CompletionStage<RoutingProcedureResponse> run(Connection connection, org.neo4j.driver.internal.DatabaseName databaseName, Set<Bookmark> bookmarks, String impersonatedUser) Description copied from interface:RoutingProcedureRunner
Run the calls to the server- Specified by:
run
in interfaceRoutingProcedureRunner
- Parameters:
connection
- The connection which will be used to call the serverdatabaseName
- The database namebookmarks
- The bookmarks used to query the routing informationimpersonatedUser
- The impersonated user, should benull
for non-impersonated requests- Returns:
- The routing table
-