Class RoutingTableRegistryImpl

java.lang.Object
org.neo4j.driver.internal.cluster.RoutingTableRegistryImpl
All Implemented Interfaces:
RoutingTableRegistry

public class RoutingTableRegistryImpl extends Object implements RoutingTableRegistry
  • Constructor Details

  • Method Details

    • ensureRoutingTable

      public CompletionStage<RoutingTableHandler> ensureRoutingTable(ConnectionContext context)
      Description copied from interface: RoutingTableRegistry
      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.
      Specified by:
      ensureRoutingTable in interface RoutingTableRegistry
      Returns:
      The future of a new routing table handler.
    • allServers

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

      public void remove(org.neo4j.driver.internal.DatabaseName databaseName)
      Description copied from interface: RoutingTableRegistry
      Removes a routing table of the given database from registry.
      Specified by:
      remove in interface RoutingTableRegistry
    • removeAged

      public void removeAged()
      Description copied from interface: RoutingTableRegistry
      Removes all routing tables that has been not used for a long time.
      Specified by:
      removeAged in interface RoutingTableRegistry
    • getRoutingTableHandler

      public Optional<RoutingTableHandler> getRoutingTableHandler(org.neo4j.driver.internal.DatabaseName databaseName)
      Description copied from interface: RoutingTableRegistry
      Returns routing table handler for the given database name if it exists in the registry.
      Specified by:
      getRoutingTableHandler in interface RoutingTableRegistry
      Parameters:
      databaseName - the database name
      Returns:
      the routing table handler for the requested database name
    • contains

      public boolean contains(org.neo4j.driver.internal.DatabaseName databaseName)