Module org.neo4j.driver
Class PooledBoltConnectionProvider
java.lang.Object
org.neo4j.driver.internal.bolt.pooledimpl.PooledBoltConnectionProvider
- All Implemented Interfaces:
BoltConnectionProvider
-
Constructor Summary
ConstructorDescriptionPooledBoltConnectionProvider
(BoltConnectionProvider boltConnectionProvider, int maxSize, long acquisitionTimeout, long maxLifetime, long idleBeforeTest, Clock clock, LoggingProvider logging) -
Method Summary
Modifier and TypeMethodDescriptionclose()
void
connect
(CompletableFuture<PooledBoltConnection> acquisitionFuture, SecurityPlan securityPlan, DatabaseName databaseName, Map<String, Value> authMap, Supplier<CompletionStage<Map<String, Value>>> authMapStageSupplier, AccessMode mode, Set<String> bookmarks, String impersonatedUser, BoltProtocolVersion minVersion, NotificationConfig notificationConfig) 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
-
PooledBoltConnectionProvider
public PooledBoltConnectionProvider(BoltConnectionProvider boltConnectionProvider, int maxSize, long acquisitionTimeout, long maxLifetime, long idleBeforeTest, 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
-
connect
public void connect(CompletableFuture<PooledBoltConnection> acquisitionFuture, SecurityPlan securityPlan, DatabaseName databaseName, Map<String, Value> authMap, Supplier<CompletionStage<Map<String, Value>>> authMapStageSupplier, AccessMode mode, Set<String> bookmarks, String impersonatedUser, BoltProtocolVersion minVersion, NotificationConfig notificationConfig) -
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
-