public interface BoltConnectionProvider
A Neo4j Bolt Protocol connection provider.
Its main objective is to establish Bolt connections.
Its intances are expected to be created using BoltConnectionProviderFactory that may be discovered using the
ServiceLoader.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionclose()Closes theBoltConnectionProviderinstance.connect(URI uri, String routingContextAddress, BoltAgent boltAgent, String userAgent, int connectTimeoutMillis, SecurityPlan securityPlan, AuthToken authToken, BoltProtocolVersion minVersion, NotificationConfig notificationConfig) Connects to the givenURIusing the provided parameters and returnsBoltConnectioninstance.
-
Method Details
-
connect
CompletionStage<BoltConnection> connect(URI uri, String routingContextAddress, BoltAgent boltAgent, String userAgent, int connectTimeoutMillis, SecurityPlan securityPlan, AuthToken authToken, BoltProtocolVersion minVersion, NotificationConfig notificationConfig) Connects to the givenURIusing the provided parameters and returnsBoltConnectioninstance.- Parameters:
uri- the connectionURIroutingContextAddress- the address to be used in the 'address' field of routing context. This applies to URI schemes that support routing context only. When set tonull, the default behaviour of getting the address from the URI applies. This parameter should be used when an explicit address that differs from the one in the URI should be used.boltAgent- theBoltAgentuserAgent- the User AgentconnectTimeoutMillis- the connection timeoutsecurityPlan- theSecurityPlanauthToken- theAuthTokenminVersion- the minimumBoltProtocolVersionnotificationConfig- theNotificationConfig, this usually used in the BoltHELLOmessage- Returns:
- the
BoltConnectioninstance
-
close
CompletionStage<Void> close()Closes theBoltConnectionProviderinstance.- Returns:
- the close
CompletionStage
-