Package org.wildfly.clustering.singleton
Interface SingletonServiceBuilder<T>
- Type Parameters:
T- the singleton service value type
- All Superinterfaces:
Builder<T>,ServiceConfigurator,ServiceNameProvider
Deprecated, for removal: This API element is subject to removal in a future version.
Builds a singleton service.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionelectionListener(SingletonElectionListener listener) Deprecated, for removal: This API element is subject to removal in a future version.Defines a listener to trigger following the election of a primary singleton provider.Deprecated, for removal: This API element is subject to removal in a future version.Defines the policy for electing a primary singleton provider.requireQuorum(int quorum) Deprecated, for removal: This API element is subject to removal in a future version.Defines the minimum number of members required before a singleton election will take place.Methods inherited from interface org.wildfly.clustering.service.ServiceNameProvider
getServiceName
-
Method Details
-
requireQuorum
Deprecated, for removal: This API element is subject to removal in a future version.Defines the minimum number of members required before a singleton election will take place.- Parameters:
quorum- the quorum required for electing a primary singleton provider- Returns:
- a reference to this builder
-
electionPolicy
Deprecated, for removal: This API element is subject to removal in a future version.Defines the policy for electing a primary singleton provider.- Parameters:
policy- an election policy- Returns:
- a reference to this builder
-
electionListener
Deprecated, for removal: This API element is subject to removal in a future version.Defines a listener to trigger following the election of a primary singleton provider.- Parameters:
listener- an election listener- Returns:
- a reference to this builder
-
SingletonServiceConfigurator.