Search in sources :

Example 1 with SingleAddressRoutingTableProvider

use of org.neo4j.procedure.builtin.routing.SingleAddressRoutingTableProvider in project neo4j by neo4j.

the class AbstractEditionModule method serverSideRoutingTableProvider.

protected ServerSideRoutingTableProvider serverSideRoutingTableProvider(GlobalModule globalModule) {
    ConnectorPortRegister portRegister = globalModule.getConnectorPortRegister();
    Config config = globalModule.getGlobalConfig();
    LogProvider logProvider = globalModule.getLogService().getInternalLogProvider();
    RoutingTableTTLProvider ttlProvider = RoutingTableTTLProvider.ttlFromConfig(config);
    return new SingleAddressRoutingTableProvider(portRegister, RoutingOption.ROUTE_WRITE_AND_READ, config, logProvider, ttlProvider);
}
Also used : ConnectorPortRegister(org.neo4j.configuration.connectors.ConnectorPortRegister) LogProvider(org.neo4j.logging.LogProvider) Config(org.neo4j.configuration.Config) ProcedureConfig(org.neo4j.procedure.impl.ProcedureConfig) SingleAddressRoutingTableProvider(org.neo4j.procedure.builtin.routing.SingleAddressRoutingTableProvider) RoutingTableTTLProvider(org.neo4j.procedure.builtin.routing.RoutingTableTTLProvider)

Aggregations

Config (org.neo4j.configuration.Config)1 ConnectorPortRegister (org.neo4j.configuration.connectors.ConnectorPortRegister)1 LogProvider (org.neo4j.logging.LogProvider)1 RoutingTableTTLProvider (org.neo4j.procedure.builtin.routing.RoutingTableTTLProvider)1 SingleAddressRoutingTableProvider (org.neo4j.procedure.builtin.routing.SingleAddressRoutingTableProvider)1 ProcedureConfig (org.neo4j.procedure.impl.ProcedureConfig)1