Package org.wildfly.clustering.singleton
Interface Singleton
- All Known Subinterfaces:
SingletonService,SingletonService<T>
public interface Singleton
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionReturns the current primary provider of the singleton.Returns the providers on which the given singleton is available.booleanIndicates whether this node is the primary provider of the singleton.
-
Method Details
-
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
-
getProviders
Returns the providers on which the given singleton is available.- Returns:
- a set of cluster members
-