T
- the singleton service value typepublic interface SingletonServiceBuilder<T>
extends org.wildfly.clustering.service.Builder<T>
Modifier and Type | Method and Description |
---|---|
SingletonServiceBuilder<T> |
electionPolicy(SingletonElectionPolicy policy)
Defines the policy for electing a primary singleton provider.
|
SingletonServiceBuilder<T> |
requireQuorum(int quorum)
Defines the minimum number of members required before a singleton election will take place.
|
SingletonServiceBuilder<T> requireQuorum(int quorum)
quorum
- the quorum required for electing a primary singleton providerSingletonServiceBuilder<T> electionPolicy(SingletonElectionPolicy policy)
policy
- an election policyCopyright © 2017 JBoss by Red Hat. All rights reserved.