Interface MasterCandidate


  • @Deprecated
    public interface MasterCandidate
    Deprecated.
    This API should no longer be used and is scheduled for removal in a future release
    A candidate in a VersionedMasterElection.
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean canMasterAcquire​(java.lang.String version)
      Deprecated.
      Check to see if engine can acquire lock for version.
      void notMaster()
      Deprecated.
      Indicates that the current node's status as master has been revoked.
      void nowMaster​(java.util.concurrent.locks.Lock lock, java.lang.String version)
      Deprecated.
      Indicates that the current node processing this event is now the master.
    • Method Detail

      • nowMaster

        void nowMaster​(java.util.concurrent.locks.Lock lock,
                       java.lang.String version)
        Deprecated.
        Indicates that the current node processing this event is now the master.
      • notMaster

        void notMaster()
        Deprecated.
        Indicates that the current node's status as master has been revoked.

        The lock provided in nowMaster(Lock, String) is no longer valid and calls to Lock.unlock() are not necessary.

        The api will NOT automatically reenter the listener into the election.

      • canMasterAcquire

        boolean canMasterAcquire​(java.lang.String version)
        Deprecated.
        Check to see if engine can acquire lock for version.