SingletonServiceConfiguratorFactory
@Deprecated public interface SingletonServiceBuilderFactory extends SingletonPolicy, SingletonServiceConfiguratorFactory
Modifier and Type | Method and Description |
---|---|
<T> SingletonServiceBuilder<T> |
createSingletonServiceBuilder(ServiceName name,
Service<T> service)
Deprecated.
Creates a singleton service builder.
|
<T> SingletonServiceBuilder<T> |
createSingletonServiceBuilder(ServiceName name,
Service<T> primaryService,
Service<T> backupService)
Deprecated.
Creates a singleton service builder.
|
createSingletonServiceConfigurator
<T> SingletonServiceBuilder<T> createSingletonServiceBuilder(ServiceName name, Service<T> service)
SingletonPolicy
name
- the name of the serviceservice
- the service to run when elected as the primary node<T> SingletonServiceBuilder<T> createSingletonServiceBuilder(ServiceName name, Service<T> primaryService, Service<T> backupService)
SingletonPolicy
name
- the name of the serviceprimaryService
- the service to run when elected as the primary nodebackupService
- the service to run when not elected as the primary nodeCopyright © 2019 JBoss by Red Hat. All rights reserved.