Class NettyBoltConnectionProviderFactory

java.lang.Object
org.neo4j.bolt.connection.netty.NettyBoltConnectionProviderFactory
All Implemented Interfaces:
BoltConnectionProviderFactory

public final class NettyBoltConnectionProviderFactory extends Object implements BoltConnectionProviderFactory
A factory for creating instances of BoltConnectionProvider.

The created instances support the following URI schemes:

  • bolt, bolt+s, bolt+ssc - establishes a BoltConnection to a given address without routing context. In a clustered Neo4j DBMS the absense of routing context instructs the server to NOT carry out server-side routing even if it might be needed. The URI.getQuery() part is prohibited as routing context is not supported.
  • neo4j, neo4j+s, neo4j+ssc - establishes a BoltConnection to a given address with routing context, which is automatically parsed from the connection URI. In a clustered Neo4j DBMS the presence of routing context enables the server to perform server-side routing within the cluster if necessary. Effectively, using these schemes is sufficient for establishing a connection to a clustered Neo4j DBMS that has server-side routing enabled. However, it should NOT be confused with client-side routing that requires more contextual awareness and fits BoltConnectionSource with RoutedBoltConnectionParameters support better.
Since:
4.0.0