Class RandomSingletonElectionPolicy
java.lang.Object
org.wildfly.clustering.singleton.election.RandomSingletonElectionPolicy
- All Implemented Interfaces:
SingletonElectionPolicy
SingletonElectionPolicy that elects a random member.- Author:
- Paul Ferraro
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RandomSingletonElectionPolicy
public RandomSingletonElectionPolicy()
-
-
Method Details
-
elect
Elect a single node from the specified list of candidate nodes.- Specified by:
electin interfaceSingletonElectionPolicy- Parameters:
nodes- a list of candidate nodes.- Returns:
- the elected node
-