Class DistributedSingletonServiceBuilder<T>
- java.lang.Object
-
- org.wildfly.clustering.service.SimpleServiceNameProvider
-
- org.wildfly.clustering.singleton.server.DistributedSingletonServiceBuilder<T>
-
- All Implemented Interfaces:
Supplier<Group>,Builder<T>,ServiceConfigurator,ServiceNameProvider,DistributedSingletonServiceContext,SingletonServiceContext,SingletonServiceBuilder<T>
@Deprecated public class DistributedSingletonServiceBuilder<T> extends SimpleServiceNameProvider implements SingletonServiceBuilder<T>, DistributedSingletonServiceContext, Supplier<Group>
Deprecated.DistributedSingletonServiceBuilderimplementation that uses JBoss MSC 1.3.x service installation.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description DistributedSingletonServiceBuilder(org.jboss.msc.service.ServiceName serviceName, org.jboss.msc.service.Service<T> primaryService, org.jboss.msc.service.Service<T> backupService, DistributedSingletonServiceConfiguratorContext context)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.jboss.msc.service.ServiceBuilder<T>build(org.jboss.msc.service.ServiceTarget target)Deprecated.SingletonServiceBuilder<T>electionListener(SingletonElectionListener listener)Deprecated.SingletonServiceBuilder<T>electionPolicy(SingletonElectionPolicy electionPolicy)Deprecated.Groupget()Deprecated.Supplier<CommandDispatcherFactory>getCommandDispatcherFactory()Deprecated.SingletonElectionListenergetElectionListener()Deprecated.SingletonElectionPolicygetElectionPolicy()Deprecated.intgetQuorum()Deprecated.Supplier<ServiceProviderRegistry<org.jboss.msc.service.ServiceName>>getServiceProviderRegistry()Deprecated.SingletonServiceBuilder<T>requireQuorum(int quorum)Deprecated.-
Methods inherited from class org.wildfly.clustering.service.SimpleServiceNameProvider
equals, getServiceName, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.wildfly.clustering.service.ServiceNameProvider
getServiceName
-
-
-
-
Constructor Detail
-
DistributedSingletonServiceBuilder
public DistributedSingletonServiceBuilder(org.jboss.msc.service.ServiceName serviceName, org.jboss.msc.service.Service<T> primaryService, org.jboss.msc.service.Service<T> backupService, DistributedSingletonServiceConfiguratorContext context)Deprecated.
-
-
Method Detail
-
build
public org.jboss.msc.service.ServiceBuilder<T> build(org.jboss.msc.service.ServiceTarget target)
Deprecated.- Specified by:
buildin interfaceBuilder<T>- Specified by:
buildin interfaceServiceConfigurator
-
requireQuorum
public SingletonServiceBuilder<T> requireQuorum(int quorum)
Deprecated.- Specified by:
requireQuorumin interfaceSingletonServiceBuilder<T>
-
electionPolicy
public SingletonServiceBuilder<T> electionPolicy(SingletonElectionPolicy electionPolicy)
Deprecated.- Specified by:
electionPolicyin interfaceSingletonServiceBuilder<T>
-
electionListener
public SingletonServiceBuilder<T> electionListener(SingletonElectionListener listener)
Deprecated.- Specified by:
electionListenerin interfaceSingletonServiceBuilder<T>
-
getServiceProviderRegistry
public Supplier<ServiceProviderRegistry<org.jboss.msc.service.ServiceName>> getServiceProviderRegistry()
Deprecated.- Specified by:
getServiceProviderRegistryin interfaceDistributedSingletonServiceContext
-
getCommandDispatcherFactory
public Supplier<CommandDispatcherFactory> getCommandDispatcherFactory()
Deprecated.- Specified by:
getCommandDispatcherFactoryin interfaceDistributedSingletonServiceContext
-
getElectionPolicy
public SingletonElectionPolicy getElectionPolicy()
Deprecated.- Specified by:
getElectionPolicyin interfaceDistributedSingletonServiceContext
-
getElectionListener
public SingletonElectionListener getElectionListener()
Deprecated.- Specified by:
getElectionListenerin interfaceSingletonServiceContext
-
getQuorum
public int getQuorum()
Deprecated.- Specified by:
getQuorumin interfaceDistributedSingletonServiceContext
-
-