Interface LoadBalancingStrategy

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.graphdbapi.driver.internal.BoltServerAddress select​(com.graphdbapi.driver.internal.BoltServerAddress[] knownServers, com.graphdbapi.driver.internal.cluster.StrategyParam params)
      在给定的地址数组中选择最合适的地址。
    • Method Detail

      • select

        com.graphdbapi.driver.internal.BoltServerAddress select​(com.graphdbapi.driver.internal.BoltServerAddress[] knownServers,
                                                                com.graphdbapi.driver.internal.cluster.StrategyParam params)
        在给定的地址数组中选择最合适的地址。
        Parameters:
        knownServers - 已知路由表中的地址数组
        params - 自定义策略所需要的属性,例如执行语句中的方法名、图INDEX、执行的参数
        Returns:
        选择连接的地址