类 AutoFailoverPolicy

  • 直接已知子类:
    MinAvailablePolicy

    public abstract class AutoFailoverPolicy
    extends java.lang.Object
    Basic definition of an auto-failover policy.
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      abstract boolean isBrokerAvailable​(BrokerStatus brokerStatus)
      Determine whether a broker is considered available or not.
      abstract boolean shouldFailoverToSecondary​(int totalPrimaryCandidates)  
      abstract boolean shouldFailoverToSecondary​(java.util.SortedSet<BrokerStatus> brokerStatus)
      Checks to see whether the new namespace ownership should be failed over to the secondary brokers.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • AutoFailoverPolicy

        public AutoFailoverPolicy()
    • 方法详细资料

      • shouldFailoverToSecondary

        public abstract boolean shouldFailoverToSecondary​(java.util.SortedSet<BrokerStatus> brokerStatus)
        Checks to see whether the new namespace ownership should be failed over to the secondary brokers.
        参数:
        brokerStatus -
        返回:
      • shouldFailoverToSecondary

        public abstract boolean shouldFailoverToSecondary​(int totalPrimaryCandidates)
      • isBrokerAvailable

        public abstract boolean isBrokerAvailable​(BrokerStatus brokerStatus)
        Determine whether a broker is considered available or not.
        参数:
        brokerStatus -
        返回: