接口 FailoverCondition
-
@SPI("failover") public interface FailoverCondition
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 booleanisLocalDataCenter(URL url)Judge whether it is a local region or a local datacenter.booleanshouldQuery(URL url)Whether metadata should be read from specified url.booleanshouldRegister(URL url)Whether metadata should be reported.
-
-
-
方法详细资料
-
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-- 返回:
-
-