FabricRuntime.registerStatelessServiceFactoryAsync(String serviceTypeName, StatelessServiceFactory factory, Duration timeout) 方法
定义
Asynchronously registers the specified StatelessServiceFactory for the specified service type, with the specified timeout and cancellationToken
public CompletableFuture<?> registerStatelessServiceFactoryAsync(String serviceTypeName, StatelessServiceFactory factory, Duration timeout)
参数
- serviceTypeName
- String
The type name of the service type (as a string). This should match the type of the service group type as specified in the manifests and/or the CreateService command.
- factory
- StatelessServiceFactory
The StatelessServiceFactory which can create the specified service type.
- timeout
- Duration
The maximum amount of time Service Fabric will allow this operation to continue before returning a TimeoutException.
返回
CompletableFuture<?>
The task representing the asynchronous operation.