Package org.wildfly.clustering.singleton
Interface SingletonElectionPolicy
- All Known Implementing Classes:
PreferredSingletonElectionPolicy,RandomSingletonElectionPolicy,SimpleSingletonElectionPolicy
public interface SingletonElectionPolicy
Used by a singleton service to elect the primary node from among the list of nodes that can provide the given service.
- Author:
- Paul Ferraro
-
Method Summary
-
Method Details
-
elect
Elect a single node from the specified list of candidate nodes.- Parameters:
nodes- a list of candidate nodes.- Returns:
- the elected node
-