public class PreferredSingletonElectionPolicy extends Object implements SingletonElectionPolicy
Constructor and Description |
---|
PreferredSingletonElectionPolicy(SingletonElectionPolicy policy,
List<Preference> preferences) |
PreferredSingletonElectionPolicy(SingletonElectionPolicy policy,
Preference... preferences) |
Modifier and Type | Method and Description |
---|---|
Node |
elect(List<Node> candidates)
Elect a single node from the specified list of candidate nodes.
|
public PreferredSingletonElectionPolicy(SingletonElectionPolicy policy, Preference... preferences)
public PreferredSingletonElectionPolicy(SingletonElectionPolicy policy, List<Preference> preferences)
public Node elect(List<Node> candidates)
SingletonElectionPolicy
elect
in interface SingletonElectionPolicy
candidates
- a list of candidate nodes.Copyright © 2019 JBoss by Red Hat. All rights reserved.