Module org.neo4j.driver
Class NettyBoltConnectionProvider
java.lang.Object
org.neo4j.driver.internal.bolt.basicimpl.NettyBoltConnectionProvider
- All Implemented Interfaces:
BoltConnectionProvider
-
Constructor Summary
ConstructorDescriptionNettyBoltConnectionProvider
(io.netty.channel.EventLoopGroup eventLoopGroup, Clock clock, DomainNameResolver domainNameResolver, io.netty.channel.local.LocalAddress localAddress, 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
-
NettyBoltConnectionProvider
public NettyBoltConnectionProvider(io.netty.channel.EventLoopGroup eventLoopGroup, Clock clock, DomainNameResolver domainNameResolver, io.netty.channel.local.LocalAddress localAddress, 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
-