Module org.neo4j.bolt.connection
Package org.neo4j.bolt.connection
Interface BoltConnectionParameters
- All Known Subinterfaces:
RoutedBoltConnectionParameters
public interface BoltConnectionParameters
A set of parameters used by
BoltConnectionSource when getting BoltConnection.- Since:
- 4.0.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA builder for creatingBoltConnectionParameters. -
Method Summary
Modifier and TypeMethodDescriptionAn optionalAuthTokenthat the given connection must use.builder()Returns a newBoltConnectionParameters.Builderinstance.static BoltConnectionParametersReturns defaultBoltConnectionParameters.An optional minimumBoltProtocolVersionthat the connection must support.
-
Method Details
-
authToken
AuthToken authToken()An optionalAuthTokenthat the given connection must use.It is intended for cases when a specific
AuthTokenmust be used that may differ from theBoltConnectionSourcedefault one.BoltConnectionSourcemight pipelineMessages.logoff()andMessages.logon(AuthToken)when it already has a suitableBoltConnection, theResponseHandlermust handle response errors in such cases.- Returns:
- an optional
AuthTokenornullifBoltConnectionSourcedefault should be used
-
minVersion
BoltProtocolVersion minVersion()An optional minimumBoltProtocolVersionthat the connection must support.- Returns:
- an
OptionalofBoltProtocolVersion
-
defaultParameters
Returns defaultBoltConnectionParameters.- Returns:
- the default
BoltConnectionParameters
-
builder
Returns a newBoltConnectionParameters.Builderinstance.- Returns:
- a new builder
-