Package org.wildfly.clustering.singleton
Interface SingletonState
- All Superinterfaces:
SingletonStatus
An immutable snapshot of the state of a singleton.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionReturns the primary provider of the singleton, if one is present.Returns the set of members that provide the singleton, including the primary provider.Methods inherited from interface org.wildfly.clustering.singleton.SingletonStatus
isPrimaryProvider
-
Method Details
-
getPrimaryProvider
Optional<GroupMember> getPrimaryProvider()Returns the primary provider of the singleton, if one is present.- Returns:
- the primary provider of the singleton when present
-
getProviders
Set<GroupMember> getProviders()Returns the set of members that provide the singleton, including the primary provider.- Returns:
- a set of cluster members
-