Class RandomSingletonElectionPolicy

    • Constructor Detail

      • RandomSingletonElectionPolicy

        public RandomSingletonElectionPolicy()
    • Method Detail

      • elect

        public Node elect​(List<Node> nodes)
        Elect a single node from the specified list of candidate nodes.
        Specified by:
        elect in interface SingletonElectionPolicy
        Parameters:
        nodes - a list of candidate nodes.
        Returns:
        the elected node