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