Class PreferredSingletonElectionPolicy

java.lang.Object
org.wildfly.clustering.singleton.election.PreferredSingletonElectionPolicy
All Implemented Interfaces:
SingletonElectionPolicy

@Deprecated(forRemoval=true) public class PreferredSingletonElectionPolicy extends Object implements SingletonElectionPolicy
Deprecated, for removal: This API element is subject to removal in a future version.
An election policy that always elects a preferred node, and defers to a default policy if the preferred node is not a candidate. The means of specifying the preferred node is the responsibility of the extending class.
Author:
Paul Ferraro
  • Constructor Details

    • PreferredSingletonElectionPolicy

      public PreferredSingletonElectionPolicy(SingletonElectionPolicy policy, Preference... preferences)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • PreferredSingletonElectionPolicy

      public PreferredSingletonElectionPolicy(SingletonElectionPolicy policy, List<Preference> preferences)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • elect

      public Node elect(List<Node> candidates)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: SingletonElectionPolicy
      Elect a single member from the specified list of candidate members.
      Specified by:
      elect in interface SingletonElectionPolicy
      Returns:
      the elected member