Package org.neo4j.bolt.connection.routed
Interface BoltConnectionSourceFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A factory for
BoltConnectionSource instances used by RoutedBoltConnectionSource.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescription
-
Method Details
-
create
Creates aBoltConnectionSourcefor a specificURIprovided by theRoutedBoltConnectionSource.As
URIinstances provided by theRoutedBoltConnectionSourceuseboltschemes,BoltConnectionSourceinstances MUST support such schemes.- Parameters:
uri- the URIexpectedHostname- the expected hostname for verification purposes- Returns:
- a new
BoltConnectionSource
-