Interface SingletonElectionPolicy

All Known Implementing Classes:
PreferredSingletonElectionPolicy, RandomSingletonElectionPolicy, SimpleSingletonElectionPolicy

@Deprecated(forRemoval=true) public interface SingletonElectionPolicy
Deprecated, for removal: This API element is subject to removal in a future version.
Used by a singleton service to elect the primary node from among the list of nodes that can provide the given service.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    elect(List<Node> candidates)
    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.
  • Method Details

    • elect

      Node elect(List<Node> candidates)
      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.
      Parameters:
      members - a list of candidate members.
      Returns:
      the elected member