Module org.neo4j.driver
Class RoutedBoltConnectionProvider
java.lang.Object
org.neo4j.driver.internal.bolt.routedimpl.RoutedBoltConnectionProvider
- All Implemented Interfaces:
BoltConnectionProvider
-
Constructor Summary
ConstructorDescriptionRoutedBoltConnectionProvider
(Supplier<BoltConnectionProvider> boltConnectionProviderSupplier, Function<BoltServerAddress, Set<BoltServerAddress>> resolver, DomainNameResolver domainNameResolver, long routingTablePurgeDelayMs, Rediscovery rediscovery, Clock clock, LoggingProvider logging) -
Method Summary
Modifier and TypeMethodDescriptionclose()
connect
(SecurityPlan securityPlan, DatabaseName databaseName, Supplier<CompletionStage<Map<String, Value>>> authMapStageSupplier, AccessMode mode, Set<String> bookmarks, String impersonatedUser, BoltProtocolVersion minVersion, NotificationConfig notificationConfig, Consumer<DatabaseName> databaseNameConsumer) init
(BoltServerAddress address, RoutingContext routingContext, BoltAgent boltAgent, String userAgent, int connectTimeoutMillis, MetricsListener metricsListener) supportsMultiDb
(SecurityPlan securityPlan, Map<String, Value> authMap) supportsSessionAuth
(SecurityPlan securityPlan, Map<String, Value> authMap) verifyConnectivity
(SecurityPlan securityPlan, Map<String, Value> authMap)
-
Constructor Details
-
RoutedBoltConnectionProvider
public RoutedBoltConnectionProvider(Supplier<BoltConnectionProvider> boltConnectionProviderSupplier, Function<BoltServerAddress, Set<BoltServerAddress>> resolver, DomainNameResolver domainNameResolver, long routingTablePurgeDelayMs, Rediscovery rediscovery, Clock clock, LoggingProvider logging)
-
-
Method Details
-
init
public CompletionStage<Void> init(BoltServerAddress address, RoutingContext routingContext, BoltAgent boltAgent, String userAgent, int connectTimeoutMillis, MetricsListener metricsListener) - Specified by:
init
in interfaceBoltConnectionProvider
-
connect
public CompletionStage<BoltConnection> connect(SecurityPlan securityPlan, DatabaseName databaseName, Supplier<CompletionStage<Map<String, Value>>> authMapStageSupplier, AccessMode mode, Set<String> bookmarks, String impersonatedUser, BoltProtocolVersion minVersion, NotificationConfig notificationConfig, Consumer<DatabaseName> databaseNameConsumer) - Specified by:
connect
in interfaceBoltConnectionProvider
-
verifyConnectivity
public CompletionStage<Void> verifyConnectivity(SecurityPlan securityPlan, Map<String, Value> authMap) - Specified by:
verifyConnectivity
in interfaceBoltConnectionProvider
-
supportsMultiDb
public CompletionStage<Boolean> supportsMultiDb(SecurityPlan securityPlan, Map<String, Value> authMap) - Specified by:
supportsMultiDb
in interfaceBoltConnectionProvider
-
supportsSessionAuth
public CompletionStage<Boolean> supportsSessionAuth(SecurityPlan securityPlan, Map<String, Value> authMap) - Specified by:
supportsSessionAuth
in interfaceBoltConnectionProvider
-
close
- Specified by:
close
in interfaceBoltConnectionProvider
-