public interface SingletonServiceConfigurator extends ImmutableSingletonServiceConfigurator
ImmutableSingletonServiceConfigurator
for customizing singleton service behavior.Modifier and Type | Method and Description |
---|---|
SingletonServiceConfigurator |
electionListener(SingletonElectionListener listener)
Defines a listener to trigger following the election of a primary singleton provider.
|
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 policySingletonServiceConfigurator electionListener(SingletonElectionListener listener)
listener
- an election listenerCopyright © 2021 JBoss by Red Hat. All rights reserved.