Interface RoutingTableRegistry

All Known Implementing Classes:
RoutingTableRegistryImpl

public interface RoutingTableRegistry
A generic interface to access all routing tables as a whole. It also provides methods to obtain a routing table or manage a routing table for a specified database.
  • Method Details

    • ensureRoutingTable

      Ensures the routing table for the database with given access mode. For server version lower than 4.0, the database name will be ignored while refreshing routing table.
      Returns:
      The future of a new routing table handler.
    • allServers

      Set<org.neo4j.driver.internal.BoltServerAddress> allServers()
      Returns:
      all servers in the registry
    • remove

      void remove(org.neo4j.driver.internal.DatabaseName databaseName)
      Removes a routing table of the given database from registry.
    • removeAged

      void removeAged()
      Removes all routing tables that has been not used for a long time.
    • getRoutingTableHandler

      Optional<RoutingTableHandler> getRoutingTableHandler(org.neo4j.driver.internal.DatabaseName databaseName)
      Returns routing table handler for the given database name if it exists in the registry.
      Parameters:
      databaseName - the database name
      Returns:
      the routing table handler for the requested database name