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
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
-
Constructor Details
-
RandomSingletonElectionPolicy
public RandomSingletonElectionPolicy()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
elect
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:
electin interfaceSingletonElectionPolicy- Returns:
- the elected member
-
SingletonElectionPolicy.random().