Class RandomSingletonElectionPolicy

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

@Deprecated(forRemoval=true) public class RandomSingletonElectionPolicy extends Object implements SingletonElectionPolicy
Deprecated, for removal: This API element is subject to removal in a future version.
SingletonElectionPolicy that elects a random member.
Author:
Paul Ferraro
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    elect(List<Node> nodes)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Elect a single member from the specified list of candidate members.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RandomSingletonElectionPolicy

      public RandomSingletonElectionPolicy()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • elect

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