FabricRuntime.registerStatefulServiceFactoryAsync(String serviceTypeName, StatefulServiceFactory factory, Duration timeout) 方法

定义

Registers the specified StatefulServiceFactory for the specified service type with the specified timeout and cancellationToken.

public CompletableFuture<?> registerStatefulServiceFactoryAsync(String serviceTypeName, StatefulServiceFactory 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
StatefulServiceFactory

The StatefulServiceFactory 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 representing the asynchronous operation.

适用于