Package org.wildfly.clustering.singleton
Interface Singleton
-
- All Known Subinterfaces:
SingletonService,SingletonService<T>
public interface Singleton- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NodegetPrimaryProvider()Returns the current primary provider of the singleton.Set<Node>getProviders()Returns the providers on which the given singleton is available.booleanisPrimary()Indicates whether this node is the primary provider of the singleton.
-
-
-
Method Detail
-
isPrimary
boolean isPrimary()
Indicates whether this node is the primary provider of the singleton.- Returns:
- true, if this node is the primary node, false if it is a backup node.
-
getPrimaryProvider
Node getPrimaryProvider()
Returns the current primary provider of the singleton.- Returns:
- a cluster member
-
-