Class DistributedSingletonService
java.lang.Object
org.wildfly.clustering.singleton.server.AbstractDistributedSingletonService<SingletonContext>
org.wildfly.clustering.singleton.server.DistributedSingletonService
- All Implemented Interfaces:
Supplier<SingletonContext>,org.jboss.msc.Service,ServiceProviderRegistration.Listener,Lifecycle,SingletonContext,SingletonService,Singleton,SingletonElectionListener
public class DistributedSingletonService
extends AbstractDistributedSingletonService<SingletonContext>
Distributed
SingletonService implementation that uses JBoss MSC 1.4.x service installation.- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.jboss.msc.Service
NULL -
Constructor Summary
ConstructorsConstructorDescriptionDistributedSingletonService(DistributedSingletonServiceContext context, org.jboss.msc.Service service, Consumer<Singleton> singleton, List<Map.Entry<org.jboss.msc.service.ServiceName[], DeferredInjector<?>>> injectors) -
Method Summary
Methods inherited from class org.wildfly.clustering.singleton.server.AbstractDistributedSingletonService
elected, getPrimaryProvider, getProviders, isPrimary, providersChanged, start, stop, stop
-
Constructor Details
-
DistributedSingletonService
public DistributedSingletonService(DistributedSingletonServiceContext context, org.jboss.msc.Service service, Consumer<Singleton> singleton, List<Map.Entry<org.jboss.msc.service.ServiceName[], DeferredInjector<?>>> injectors)
-
-
Method Details
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException - Specified by:
startin interfaceorg.jboss.msc.Service- Overrides:
startin classAbstractDistributedSingletonService<SingletonContext>- Throws:
org.jboss.msc.service.StartException
-
get
-