Module org.neo4j.bolt.connection
Package org.neo4j.bolt.connection
Interface BoltConnectionParameters.Builder
- All Known Subinterfaces:
RoutedBoltConnectionParameters.Builder
- Enclosing interface:
BoltConnectionParameters
public static interface BoltConnectionParameters.Builder
A builder for creating
BoltConnectionParameters.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newBoltConnectionParameters.withAuthToken(AuthToken authToken) Sets anAuthTokenthat the given connection must use.withMinVersion(BoltProtocolVersion minVersion) Sets an optional minimumBoltProtocolVersionthat the connection must support.
-
Method Details
-
withAuthToken
Sets anAuthTokenthat the given connection must use.It is intended for cases when a specific
AuthTokenmust be used that may differ from theBoltConnectionSourcedefault one.The default is
null.- Parameters:
authToken- theAuthTokenornullto use theBoltConnectionSourcedefault one- Returns:
- this builder
-
withMinVersion
Sets an optional minimumBoltProtocolVersionthat the connection must support.The default is
null.- Parameters:
minVersion- the minimumBoltProtocolVersionornullif there is no minimum- Returns:
- this builder
-
build
BoltConnectionParameters build()Builds a newBoltConnectionParameters.- Returns:
- the new
BoltConnectionParameters
-