@Deprecated public class LegacyDistributedSingletonService<T> extends AbstractDistributedSingletonService<LegacySingletonContext<T>> implements SingletonService<T>, LegacySingletonContext<T>, PrimaryProxyContext<T>
SingletonService implementation that uses JBoss MSC 1.3.x service installation.
Decorates an MSC service ensuring that it is only started on one node in the cluster at any given time.| Constructor and Description |
|---|
LegacyDistributedSingletonService(DistributedSingletonServiceContext context,
org.jboss.msc.service.Service<T> primaryService,
org.jboss.msc.service.Service<T> backupService)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
LegacySingletonContext<T> |
get()
Deprecated.
|
CommandDispatcher<LegacySingletonContext<T>> |
getCommandDispatcher()
Deprecated.
|
Optional<T> |
getLocalValue()
Deprecated.
|
org.jboss.msc.service.ServiceName |
getServiceName()
Deprecated.
|
T |
getValue()
Deprecated.
|
void |
start(org.jboss.msc.service.StartContext context)
Deprecated.
|
void |
stop(org.jboss.msc.service.StopContext context)
Deprecated.
|
elected, getPrimaryProvider, getProviders, isPrimary, providersChanged, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPrimaryProvider, getProviders, isMaster, isPrimaryelectedpublic LegacyDistributedSingletonService(DistributedSingletonServiceContext context, org.jboss.msc.service.Service<T> primaryService, org.jboss.msc.service.Service<T> backupService)
public org.jboss.msc.service.ServiceName getServiceName()
getServiceName in interface org.wildfly.clustering.service.ServiceNameProviderpublic LegacySingletonContext<T> get()
get in interface Supplier<LegacySingletonContext<T>>public void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.Servicestart in class AbstractDistributedSingletonService<LegacySingletonContext<T>>org.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.Servicestop in class AbstractDistributedSingletonService<LegacySingletonContext<T>>public T getValue()
getValue in interface org.jboss.msc.value.Value<T>public CommandDispatcher<LegacySingletonContext<T>> getCommandDispatcher()
getCommandDispatcher in interface PrimaryProxyContext<T>public Optional<T> getLocalValue()
getLocalValue in interface LegacySingletonContext<T>Copyright © 2020 JBoss by Red Hat. All rights reserved.