public interface SingletonServiceConfigurator extends ImmutableSingletonServiceConfigurator
ImmutableSingletonServiceConfigurator
for customizing singleton service behavior.Modifier and Type | Method and Description |
---|---|
SingletonServiceConfigurator |
electionPolicy(SingletonElectionPolicy policy)
Defines the policy for electing a primary singleton provider.
|
SingletonServiceConfigurator |
requireQuorum(int quorum)
Defines the minimum number of members required before a singleton election will take place.
|
build
SingletonServiceConfigurator requireQuorum(int quorum)
quorum
- the quorum required for electing a primary singleton providerSingletonServiceConfigurator electionPolicy(SingletonElectionPolicy policy)
policy
- an election policyCopyright © 2018 JBoss by Red Hat. All rights reserved.