Package org.wildfly.clustering.singleton
Interface SingletonPolicy
- All Superinterfaces:
SingletonPolicy
- All Known Subinterfaces:
SingletonServiceBuilderFactory
Deprecated, for removal: This API element is subject to removal in a future version.
Defines a singleton policy.
- Author:
- Paul Ferraro
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NullaryServiceDescriptor<SingletonPolicy>Deprecated, for removal: This API element is subject to removal in a future version.static final UnaryServiceDescriptor<SingletonPolicy>Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescription<T> Builder<T>createSingletonServiceBuilder(ServiceName name, Service<T> service) Deprecated.<T> Builder<T>createSingletonServiceBuilder(ServiceName name, Service<T> primaryService, Service<T> backupService) Deprecated.Methods inherited from interface org.wildfly.clustering.singleton.service.SingletonPolicy
createSingletonServiceConfigurator
-
Field Details
-
DEFAULT_SERVICE_DESCRIPTOR
Deprecated, for removal: This API element is subject to removal in a future version. -
SERVICE_DESCRIPTOR
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
createSingletonServiceBuilder
Deprecated.Creates a singleton service builder.- Parameters:
name- the name of the serviceservice- the service to run when elected as the primary node- Returns:
- a builder
-
createSingletonServiceBuilder
@Deprecated <T> Builder<T> createSingletonServiceBuilder(ServiceName name, Service<T> primaryService, Service<T> backupService) Deprecated.Creates a singleton service builder.- Parameters:
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 node- Returns:
- a builder
-
SingletonPolicy.