接口 FailoverCondition


  • @SPI("failover")
    public interface FailoverCondition
    • 方法详细资料

      • shouldRegister

        boolean shouldRegister​(URL url)
        Whether metadata should be reported.
        参数:
        url - registry url, eg: zookeeper://127.0.0.1:2181
        返回:
        true store metadata to the specified URL.
      • shouldQuery

        boolean shouldQuery​(URL url)
        Whether metadata should be read from specified url.
        参数:
        url - registry url, eg: zookeeper://127.0.0.1:2181
        返回:
        true read metadata from specified URL.
      • isLocalDataCenter

        boolean isLocalDataCenter​(URL url)
        Judge whether it is a local region or a local datacenter.

        Allows the local region or datacenter to be read first.

        参数:
        url -
        返回: