FabricRuntime.registerServiceTypeAsync(String serviceTypeName, Class<?> serviceTypeImplementation, Duration timeout) 方法
定义
Asynchronously associates the specified serviceTypeName with the actual managed Type that implements it, with the specified timeout
public CompletableFuture<?> registerServiceTypeAsync(String serviceTypeName, Class<?> serviceTypeImplementation, 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.
- serviceTypeImplementation
- Class<?>
The qualified service Type that implements the specified serviceTypeName.
- 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.