Package org.neo4j.bolt.connection.netty
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
BoltConnectionto 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. TheURI.getQuery()part is prohibited as routing context is not supported. - neo4j, neo4j+s, neo4j+ssc - establishes a
BoltConnectionto a given address with routing context, which is automatically parsed from the connectionURI. 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 fitsBoltConnectionSourcewithRoutedBoltConnectionParameterssupport better.
- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of this factory. -
Method Summary
Modifier and TypeMethodDescriptioncreate(LoggingProvider loggingProvider, ValueFactory valueFactory, MetricsListener metricsListener, Map<String, ?> additionalConfig) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.neo4j.bolt.connection.BoltConnectionProviderFactory
getOrder
-
Constructor Details
-
NettyBoltConnectionProviderFactory
public NettyBoltConnectionProviderFactory()Creates a new instance of this factory.It is used by
ServiceLoader.
-
-
Method Details
-
supports
- Specified by:
supportsin interfaceBoltConnectionProviderFactory
-
create
public BoltConnectionProvider create(LoggingProvider loggingProvider, ValueFactory valueFactory, MetricsListener metricsListener, Map<String, ?> additionalConfig) - Specified by:
createin interfaceBoltConnectionProviderFactory
-