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