Class PreferredSingletonElectionPolicy
java.lang.Object
org.wildfly.clustering.singleton.election.PreferredSingletonElectionPolicy
- All Implemented Interfaces:
SingletonElectionPolicy
@Deprecated(forRemoval=true)
public class PreferredSingletonElectionPolicy
extends Object
implements SingletonElectionPolicy
Deprecated, for removal: This API element is subject to removal in a future version.
An election policy that always elects a preferred node, and defers to a default policy
if the preferred node is not a candidate. The means of specifying the preferred node is
the responsibility of the extending class.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionPreferredSingletonElectionPolicy(SingletonElectionPolicy policy, List<Preference> preferences) Deprecated, for removal: This API element is subject to removal in a future version.PreferredSingletonElectionPolicy(SingletonElectionPolicy policy, Preference... preferences) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
-
Constructor Details
-
PreferredSingletonElectionPolicy
Deprecated, for removal: This API element is subject to removal in a future version. -
PreferredSingletonElectionPolicy
public PreferredSingletonElectionPolicy(SingletonElectionPolicy policy, List<Preference> preferences) 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.Description copied from interface:SingletonElectionPolicyElect a single member from the specified list of candidate members.- Specified by:
electin interfaceSingletonElectionPolicy- Returns:
- the elected member
-
SingletonElectionPolicy.prefer(List).