Interface SingletonElectionPolicy

All Known Implementing Classes:
PreferredSingletonElectionPolicy, RandomSingletonElectionPolicy, SimpleSingletonElectionPolicy

public interface SingletonElectionPolicy
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> nodes)
    Elect a single node from the specified list of candidate nodes.
  • Method Details

    • elect

      Node elect(List<Node> nodes)
      Elect a single node from the specified list of candidate nodes.
      Parameters:
      nodes - a list of candidate nodes.
      Returns:
      the elected node